chrome (failed) net::ERR_INCOMPLETE_CHUNKED_ENCODING ashx 加载图片
时间:2014-09-17 20:07:52
收藏:0
阅读:4755
ashx文件加载图片的方法,发现在chrome浏览器里面出了异常:
(failed) net::ERR_INCOMPLETE_CHUNKED_ENCODING
ftpStream.Read(buffer, 0, bufferSize); HttpContext.Current.Response.BinaryWrite(buffer); HttpContext.Current.Response.Flush(); ftpStream.Close(); HttpContext.Current.Response.Close();
是Response.Close()引起chrome的chunked解码失败,其它浏览器没有这个异常
去掉Response.Close()后一切正常。
原文:http://www.cnblogs.com/yes-you-can/p/3977812.html
评论(0)