List of utility methods to do Gunzip Byte Array
byte[] | gunzip(final byte[] pInput) Uncompress the given byte array using the gzip algorithm and return the uncompressed byte array. final ByteArrayInputStream vByteArrayStream = new ByteArrayInputStream(pInput); final ByteArrayOutputStream vByteArrayOutputStream = new ByteArrayOutputStream(pInput.length); final InputStream vInflaterStream = new GZIPInputStream(vByteArrayStream); ByteStreams.copy(vInflaterStream, vByteArrayOutputStream); vInflaterStream.close(); final byte[] vUnCompressedBytes = vByteArrayOutputStream.toByteArray(); return vUnCompressedBytes; |