public static String gzipToString(Blob blob, String characterSet) {
		String content = "";
		if (blob == null)
			return "";
		else {
			BufferedInputStream bis;
			try {
				bis = new BufferedInputStream(blob.getBinaryStream());
				GZIPInputStream gunzip = new GZIPInputStream(bis);
				ByteArrayOutputStream out = new ByteArrayOutputStream();
				byte[] buffer = new byte[256];
				int n;
				while ((n = gunzip.read(buffer)) >= 0) {
					out.write(buffer, 0, n);
				}
				content = out.toString(characterSet);
				return content;
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
				ClsFile.writeLog(e.toString());
				return content;
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
				ClsFile.writeLog(e.toString());
				return content;
			} 
		}
	}