Home > Back-end >  Java download file servlets, automatic updates to chrome [83.0.4103.61], file download fail
Java download file servlets, automatic updates to chrome [83.0.4103.61], file download fail

Time:09-22

Download the latest version of Chrome, as shown in figure:


File code as shown in figure:

Download a file length is: the size of 3569090 bytes, but in out. Write execution time as long as 65536 is not written in the Response, the king of the log is as follows:


How to modify the code, the file can't download files under the Chrome browser, but in other browsers like Internet explorer, 360 works, such as how to modify the code under the guidance of which the great spirit, consistent platform running in Chrome, not changed in the browser, is based on the Chrome, warrior, please help! Thank you very much

CodePudding user response:

Don't set the length can be automatically converted into chunked transfer

CodePudding user response:

Is no set length for a start, failed to download file, will enter the Servlet, but writing data will fail, in to write data, the program will not continue to write, personal feel is set or the new Chrome browser code, how do I modify can't download files
  • Related