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()后一切正常。

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()后一切正常。

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-06-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
相关资源
相似解决方案