WCF chunking/streaming - make it transparent for client

Posted by bybor on Stack Overflow See other posts from Stack Overflow or by bybor
Published on 2010-04-23T08:59:45Z Indexed on 2010/04/23 9:03 UTC
Read the original article Hit count: 884

Filed under:
|
|

While developing WCF service i've faced problem of transferring large data as method params (> 4 Mb of raw size, not considering transfer/message overhead).

The solution for this problem is to use chunking or streaming, but all the samples i've seen assume client is aware of used method and uses available block size for sending/receiving portions of data, and the problem (for me) is that it's not possible to call just one method, like

SaveData(DataInformation info)

but write wrapper method which will instead iterate smth like

SaveDataChunk(byte[] buffer)

Could it be somehow made transparent for client, just calling 'SaveData'?

© Stack Overflow or respective owner

Related posts about wcf

Related posts about chunking