0

Say I get a list of file objects from a REST call

List<FileItem> zipFileList = processRequest(request);

where request is a HttpServletRequest

I want to unzip each file and write its unzipped contents to disk. Is this possible on the fly or do I first have to save the file to disk, and then unzip it? Thanks!

RAUSHAN KUMAR
  • 5,846
  • 4
  • 34
  • 70
guitard00d123
  • 347
  • 5
  • 14
  • this queston has really nothing to do with rest. Remove the tag, please. – MaVVamaldo Jun 30 '17 at 14:02
  • Very Similar: https://stackoverflow.com/questions/3768104/jsp-servlets-how-do-i-upload-a-zip-file-unzip-it-and-extract-the-csv-file?rq=1 – Rana_S Jun 30 '17 at 14:22
  • What have you tried so far? Post your code! What do you struggle with? What does the FileItem javadoc say on how to use it? – Robert Jun 30 '17 at 18:15

0 Answers0