Following are the code snippets to retrieve a zip file from the inputstream(which can obtained from FileItem) and retrieve a file named file.txt from the zip file. Retrieving a zipfile from inputstream private ZipFile getZipFileFromStream(InputStream inputStream, String inputFileName) throws IOException { BufferedOutputStream outputStream = null; ZipFile zipFile = null; byte[] buffer = new byte[1024]; int [...]
-
Pages
-
Categories
-
Archives