/** * 瀛楃涓插帇缂╄繑鍥濨ase64缂栫爜鍚庣殑瀛楃涓� * * @param str * @return * @throws IOException */ public static String zipCompressBase64Encoding(String str) throws IOException { byte[] bs = gzip(str); String tmp = Base64.encodeBase64String(bs); return tmp.substring(8); }