摘要: java中用base64编码的API用法:String s = "hello,world !";byte[] strByte = s.getBytes();String enStr = new sun.misc.BASE64Encoder().encode(strByte);解码用法:byte[] deByte = new sun.misc.BASE64Decoder().decodeBuffer(enStr );System.out.println(new String(deByte)); 阅读全文
posted @ 2013-01-25 11:19 金鳞岂是池中物 阅读(458) 评论(0) 推荐(0) 编辑