static byte[] gunzipBinaryData(byte[] data) ctex { InputStream fis = new ByteArrayInputStream(data); GZIPInputStream gis = newGZIPInputStream(fis); ByteArrayOutputStream fos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len; while((len = gis.read(buffer)) != -1){ fos.write(buffer, 0, len); } fis.close(); fos.close(); return fos.toByteArray(); }