base64转码

来源:互联网 发布:淘宝个人第一大卖家 编辑:程序博客网 时间:2024/06/07 18:08
public static String BASE64ActiveString(String s) {
if (s == null)
return null;
BASE64Decoder decoder = new BASE64Decoder();
try {
byte[] b = decoder.decodeBuffer(s);
return new String(b);
} catch (Exception e) {
return null;
}
}
0 0
原创粉丝点击