ZipFile zip = new ZipFile("abc.zip"); //now say the entry in zip file has name "abc.txt" ZipEntry entry = new ZipEntry("abc.txt"); BufferedInputStream istream = new BufferedInputStream(zip.getInputStream(entry)); int file_size = (int) entry.getCompressedSize(); byte[] blob = new byte[(int) entry.getCompressedSize()]; int bytes_read = 0; int offset = 0; while((bytes_read = istream.read(blob, 0, file_size)) != -1) { offset += bytes_read; } //closing every thing zip.close(); istream.close(); ...