Response.Flush() throws System.Web.HttpException

后端 未结 4 989
迷失自我
迷失自我 2021-02-05 21:31

I have a HttpHandler that I\'m using to handle certain images on a client\'s website. When I\'m outputting the image stream to the response object and call Flush occasionally an

4条回答
  •  温柔的废话
    2021-02-05 22:12

    Personally in your implementation since the next line is Response.End(), just remove the call to Response.Flush() as Response.End() takes care of everything for you.

提交回复
热议问题