How to transfer large amount of data using WCF?

后端 未结 3 1325
囚心锁ツ
囚心锁ツ 2020-12-19 17:46

We are currently trying to move large amounts of data to a Silverlight 3 client using WCF with PollingDuplex. I have read about the MultiplerMessagesPerPoll in Silverlight

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 18:32

    I'm basing this on your answer and its emphasis on the size of the data you're transferring. If you're keeping the blocks of data transferred under 4GB, you can make use of the GZipStream class in the System.IO.Compression namespace. In my experience using it with plain text, it reduced the data stream to about 17-20% of its original size.

提交回复
热议问题