标签:编码 base64 java base64 编码 解码
java base64 编码 解码
public static void main(String[] args) throws Exception { String parm = "Title=不要这样额&Content=好好好好好"; // BASE64Decoder String paramBase64 = new BASE64Encoder().encode(parm.getBytes("utf-8")); System.out.println("转base64:" + paramBase64); BASE64Decoder decoder = new BASE64Decoder(); byte[] decoderStr = decoder.decodeBuffer(paramBase64); System.out.println("转码后:" + new String(decoderStr));
标签:编码 base64 java base64 编码 解码
原文地址:http://blog.csdn.net/liangrui1988/article/details/42680935