I have a app (spring-mvc) and I want to unzip a file but I want to catch the files that it is inside and to be able to work with theirs without save zip file neither files that it has (zip file).
Something like this
...
ZipFile zipFile = new ZipFile("file.zip");
Enumeration<?> enu = zipFile.entries();
while (enu.hasMoreElements()) {
ZipEntry zipEntry = (ZipEntry) enu.nextElement();
InputStream is = zipFile.getInputStream(zipEntry);
}
...
But I have zip file ("file.zip") through of CommonsMultipartFile (spring-mvc) and no of the disk
How can I do this?
Thanks.
Aucun commentaire:
Enregistrer un commentaire