목록디코딩 (1)
정미나닷컴
[Java] 자바 Base64 인코딩 / 디코딩
* base64Encode public static String base64Encode(String str) throws java.io.IOException{ if ( str == null || str.equals("") ){ return ""; }else{ sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder(); byte[] b1 = str.getBytes(); String result = encoder.encode(b1); return result; } } * base64Decode public static String base64Decode(String str) throws java.io.IOException{ if( str == null ||..
IT
2010. 10. 29. 15:32