java - Jsp download file size -
We are running Tomcat, and we are generating PDF files on the fly. I do not have the file size before hand, so I can not link direcly to a file on the server, so I send output directly.
response.setContentType ("Application / Force-Download"); Outputstream o = response .getoutputstream (); And then I output straight into the output stream
The only problem is that the receiver does not get the filesystem, so they do not know how long the download will take. Is there any way to answer how big a response is to the file?
Edit I know the filesystem, I can tell how big the file is. >
There should be a way of reaction object:
circlet response response .set content Lang (shape now);
Comments
Post a Comment