Downloading files using the output stream on the web does not take effect.

I encountered a problem when I was doing the export project today. The file could not be downloaded. Various methods were tested. The
final reason was that Ajax could not download the file. Its transmission was just a string.

Okay, let's talk about the solution. I haven't used this method before because I think it's too troublesome and I have to write io operations myself. I used to write the file directly to a certain path, such as C drive (if you can do a mapping tool outside the project), and then directly access the file in the front end and download it. Today, I have to test the io output file. Just ask. The solution is to submit with form

Guess you like

Origin blog.csdn.net/qq_35189120/article/details/94867700