On 3/10/2011 10:57 AM, Mikolaj Rydzewski wrote:
On Fri, 11 Mar 2011 04:44:27 +1300, John C <jac_legend_...@hotmail.com>
wrote:
Actually I have one more question that hopefully you can help with.
How do you delete a file after a user downloads/views it or closes the
browser window? Is there any way to track this or is the solution to
clean up the files after a specific amount of time has passed?
Do not create such file! Instead stream data on the fly from within a
servlet.
Yep. Or create the file in a temp folder, stream it down with a servlet
and then delete it as soon as the stream is done. I do this all the
time; works fine.
D
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org