Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP + Tomcat + File permissions  RSS feed

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
I am working on a site that allows users to upload zip files. After the file is unzipped and stored in the database I wish to delete the zip file. I am using the File function delete to do this - file.delete();
However this does not work. If I shut down tomcat and use a small app to delete the file it works(the small app cant delete the file when tomcat is running).
So it appears to me that tomcat locks the file. Is there anyway around this?
Thank you david
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
did you close your OutputStream ?
Can you maybe post your code ?
Olli
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!