System.Net.Http.HttpRequestException: Cannot write more bytes to the buffer than the configured maximum buffer size: 2147483647 [duplicate]

醉酒当歌 提交于 2020-02-06 08:11:01

问题


I am downloading a file from a remote server. The file is more than 2GB in size. I am requesting the file by calling

await _client.SendAsync(message, HttpCompletionOption.ResponseHeadersRead);

However, the call is throwing the above exception.

How can I download a file > 2GB?


回答1:


Your problem is very similar with following page.

HttpClient buffer size limit exceeded

Hope this will work for you.



来源:https://stackoverflow.com/questions/59513142/system-net-http-httprequestexception-cannot-write-more-bytes-to-the-buffer-than

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!