wcf upload/download large files (i.e. Img, mp3) in

2019-08-07 17:30发布

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!

1条回答
聊天终结者
2楼-- · 2019-08-07 17:37

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.

查看更多
登录 后发表回答