An exception occurs in the chrome browser.

Source: Internet
Author: User

An exception occurs in the chrome browser.

Yesterday I wrote a binary output image method and found an exception in chrome:

(Failed)

Net: ERR_INCOMPLETE_CHUNKED_ENCODING code is written as follows:
// Directly output the binary stream Response. ContentType = "image/jpeg"; Response. BinaryWrite (ms. ToArray (); Response. Flush (); Response. Close ();

 

This was previously written in this way !!! Never encountered an error !!! Bing search (tianchao you know) and found: Response. close () causes the chunked decoding failure of chrome. other browsers do not have this exception, and it seems that the chrome version does not have this problem. Remove Response. after Close (), everything works normally.
An error occurred while displaying the chrome page,

I have submitted several browser errors!

Chrome cannot be displayed normally

Is incompatible with website Problems

****************

Or you have enabled a filter rule.
Close
That's all.
*************
If not, use it.
IE browser

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.