Base64的编码和解码

2020-04-24 16:29:53 蜻蜓队长

String str=null;
String encode = new BASE64Encoder().encode(str.getBytes());
System.out.println("编码过后:"+encode);
byte[] bytes = new BASE64Decoder().decodeBuffer(encode);
String decode = new String(bytes, "UTF-8");
System.out.println("解码过后:"+decode);

以上内容来自于网络,如有侵权联系即删除
相关文章

上一篇: iPhone相册里面的照片全部变模糊,在app里点击图片无法使用,是手机系统优化存储空间的惹的祸

下一篇: [HOW TO USE HW BRP] 如何使用ARM hardware self debug tools

客服紫薇:15852074331
在线咨询
客户经理