Here you can find the source of unzip(byte[] blob)
public static Object unzip(byte[] blob) throws IOException, ClassNotFoundException
//package com.java2s; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.util.zip.GZIPInputStream; public class Main { public static Object unzip(byte[] blob) throws IOException, ClassNotFoundException { //logger.info("CacheServerHelper: Unzipping blob to object: " + blob); ByteArrayInputStream bais = new ByteArrayInputStream(blob); GZIPInputStream gs = new GZIPInputStream(bais); ObjectInputStream ois = new ObjectInputStream(gs); Object obj = ois.readObject(); //logger.info("CacheServerHelper: Unzipped blob to object: " + obj); ois.close();// w ww. j a v a 2 s.c o m bais.close(); return obj; } }