Hi guys
There's a requirement for me to create a download functionality. I've done this before using streams but the requirement right now requires me to create a temporary, physical file on the server-side. Now once that file is created, I need to pass it to an input stream and then again to an output stream for the client to download.
My only concern is that the file, once downloaded doesn't really need to be there for a long time. I want it to be deleted once the streaming process is complete. Hmmm... Is it possible to delete the file after the
Servlet has finished sending the response to the client and before the doPost or doGet method completes?
Thanks!