Android Utililty Methods GZip Byte Array

List of utility methods to do GZip Byte Array

Description

The list of methods to do GZip Byte Array are organized into topic(s).

Method

byte[]gzip(byte[] data)
gzip
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ZipEntry ze = new ZipEntry("servletservice");
ZipOutputStream zos = new ZipOutputStream(baos);
zos.putNextEntry(ze);
zos.write(data, 0, data.length);
zos.close();
byte[] zipBytes = baos.toByteArray();
return zipBytes;
...