private byte[] unzip(byte[] body){
  ZipEntry ze;
  byte buf[]=new byte[1024];
  try (ByteArrayOutputStream bao=new ByteArrayOutputStream();ByteArrayInputStream bytein=new ByteArrayInputStream(body);ZipInputStream zis=new ZipInputStream(bytein)){
    while ((ze=zis.getNextEntry()) != null) {
      int l=0;
      while ((l=zis.read(buf)) > 0) {
        bao.write(buf,0,l);
      }
    }
    return bao.toByteArray();
  }
 catch (  IOException e) {
  }
  return null;
}

private byte [ ] unzip ( byte [ ] body ) { ZipEntry ze ; byte buf [ ] = new byte [ 1024 ] ; try ( ByteArrayOutputStream bao = new ByteArrayOutputStream ( ) ; ByteArrayInputStream bytein = new ByteArrayInputStream ( body ) ; ZipInputStream zis = new ZipInputStream ( bytein ) ) { while ( ( ze = zis . getNextEntry ( ) ) != null ) { int l = 0 ; while ( ( l = zis . read ( buf ) ) > 0 ) { bao . write ( buf , 0 , l ) ; } } return bao . toByteArray ( ) ; } catch ( IOException e ) { } return null ; }
decompresses using zip algorithm .
