Results 1 to 2 of 2
- 09-24-2009, 08:26 PM #1Member
- Join Date
- Sep 2009
- Rep Power
- 09-30-2009, 08:27 PM #2
would it be possible to
- create a temporary folder on the request,
- expand the existing zip file into this temporary folder.
- add your additional files to this temporary folder
- create and stream back a zip file of the contents of the temporary folder (alternatively, could create a zip file in a second temporary location I guess)
- clean up the temporary folder (and possibly temporary zip file).
If it is not practical to clean up the temporary folder immediately after the request, you can try storing a session attribute of a List<File> objects that represent these temporary folders that were created by this user during their session, and create a Session Context Listener that on session destroy, looks for this session attribute of list of folders that are temporary folders and remove them.
another idea is to have an external process or cron scheduled task perform a delete everything older than a given amount of time within the temporary files folder.
- By akhare.sandeep in forum EclipseReplies: 1Last Post: 01-27-2009, 05:24 PM
- By kuppi in forum Java AppletsReplies: 1Last Post: 10-16-2008, 09:56 PM
- By jmHoekst in forum New To JavaReplies: 1Last Post: 09-16-2008, 05:58 PM
- By chale in forum CLDC and MIDPReplies: 0Last Post: 08-25-2008, 02:11 PM
- By janakiram.attuluri in forum Advanced JavaReplies: 1Last Post: 12-21-2007, 11:10 AM