WCF chunking/streaming - make it transparent for client
- by bybor
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'?