if(val != null)
return val;
decoded.remove(str);
}
if (str.charAt(0) != 'g')
throw new InvalidImageDataException("Not a gzip compressed image");
byte[] data = CompressionUtil.inflate(DatatypeConverter.parseBase64Binary(str.substring(1)), true);
int width = ((data[0] & 0xff) << 8) | (data[1] & 0xff);
int height = ((data[2] & 0xff) << 8) | (data[3] & 0xff);
byte[] raw = new byte[data.length - 4];
System.arraycopy(data, 4, raw, 0, raw.length);