且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HttpWebRequest上传进度

更新时间:2023-08-23 22:59:22

可能: oWebrequest.AllowWriteStreamBuffering =
false ;

Maybe: oWebrequest.AllowWriteStreamBuffering = false;

参见eg  http://blogs.msdn.com/b/johan /archive/2006/11/15/are-you-getting-outofmemoryexceptions-when-uploading-large-files.aspx   (( http://***.com/questions/4388689/vb-net-httpwebrequest-fileupload ))

See e.g. http://blogs.msdn.com/b/johan/archive/2006/11/15/are-you-getting-outofmemoryexceptions-when-uploading-large-files.aspx ((http://***.com/questions/4388689/vb-net-httpwebrequest-fileupload))

稍后:此博客涵盖了您的场景

http://blogs.msdn.com/ b /延迟/存档/ 2009/09/08 / WH en-framework-designers-outsmart-yourself-how-to-perform-streaming-http-uploads-with-net.aspx

(你的第二个想法不是你所需要的,正如你所怀疑的那样。: - ) 你只需要使用一个HTTP请求。 这是除非服务器知道要拼凑所有从
不同操作中的位到某种方式......)