Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

UnZiping file location

 
James Eman
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the applaction downloads a file i want it to go to a temp folder then i want it to unzip it to a different location can that be done (My code below)

 
Tony Docherty
Saloon Keeper
Posts: 3144
72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you just create a File object using the path to the directory you want to save the file in and the file name and pass that to the FileOutputStream constructor, ie:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!