开发者

Multiple streams in wcf

开发者 https://www.devze.com 2022-12-17 10:36 出处:网络
I am trying upload multi开发者_StackOverflow社区ple files using WCF. Since WCF only supports one stream I need to join multiple file streams together on the client and pass this to the service.

I am trying upload multi开发者_StackOverflow社区ple files using WCF. Since WCF only supports one stream I need to join multiple file streams together on the client and pass this to the service. The files might be huge and cannot be buffered in memory.

How do I do this? Please show some code sample if you have.

Regards, Rune


Since WCF allows only single stream parameter the only possible way I see is to combine multiple files as one stream and pass to the server, plus some extra info like file names, their lengths in the order they appended into stream.

0

精彩评论

暂无评论...
验证码 换一张
取 消