menacheb
menacheb

Reputation: 485

wcf upload/download large files (i.e. Img, mp3) in chunks with windows service

I have a window service and i want it to be able to upload/download large (around 4MB) files (Img, music etc.) in chunks.
I tried to do that by changing the 'maxBufferSize' 'maxRecivedMessageSize' etc. in both the service and client app.config files, but unfortunately it didn't work.
My question is how I can upload/download files in chunks. and if I can do that just with the App.config file?
Thank!

Upvotes: 1

Views: 2269

Answers (1)

Ladislav Mrnka
Ladislav Mrnka

Reputation: 364279

WCF doesn't have direct support for chunking (it always sends whole data as single chunk) but you can check this extensibility example to get chunking channel. Both your service and client must use that channel to make it work.

Upvotes: 1

Related Questions