得到字符串->字节数组
string.getBytes()=> bytes=bytearray(strtext,'utf-8')
string.getBytes()=> bytes=bytearray(strtext,'utf-8')
字节数组压缩方法
ZLibUtils.compress()=>zlib.compress(bytes)
base64方法
Base64.Encoder encoder = Base64.getEncoder();
String data = encoder.encodeToString(bytes);
String data = encoder.encodeToString(bytes);