byte[] zipBytes = new byte[compressedDataLength];
System.arraycopy(output, 0, zipBytes, 0, compressedDataLength);
ByteArrayInputStream byteInput = new ByteArrayInputStream(zipBytes);
InflaterReader inflater = new InflaterReader(byteInput);
ArrayList<Integer> holder = new ArrayList<Integer>();
int read = inflater.read();
while (read != -1)
{
holder.add(read);
read = inflater.read();
}
byte[] result = new byte[holder.size()];
for (int i = 0; i < result.length; i++)