Monthly Archives: December 2006

Working with Zip file in java

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 [...]

Follow

Get every new post delivered to your Inbox.