Here you can find the source of decompress(byte[] zipByte)
public static byte[] decompress(byte[] zipByte) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; import java.util.zip.*; public class Main { public static byte[] decompress(byte[] zipByte) throws IOException { ByteArrayOutputStream aos = new ByteArrayOutputStream(); Inflater inflater = new Inflater(); inflater.setInput(zipByte);//from w w w . j av a 2s.c om byte[] buff = new byte[1024 * 1000]; int byteNum = 0; while (!inflater.finished()) { try { byteNum = inflater.inflate(buff); aos.write(buff, 0, byteNum); } catch (DataFormatException e) { e.printStackTrace(); } } return aos.toByteArray(); } }