:+:+: 사랑愛 - Ever after :+:+:

밋첼™'s Blog is powered by Tattertools

JAVA base64 incoding decoding

개발자愛/JAVA 2007/12/21 16:51 by 밋첼™
크리에이티브 커먼즈 라이선스
Creative Commons License

public static String base64Decode(String str) {
    String result = "";
    try {
      sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder();
      byte[] b1 = decoder.decodeBuffer(str);
      result = new String(b1);
    } catch (IOException ex) {}
    return result;
  }





public static String base64Encode(String str) {
    String result = "";
    sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();
    byte[] b1 = str.getBytes();
    result = encoder.encode(b1);
    return result;
  }


Base64EDCoder.zip

Base64EDCoder.zip



TAG

TRACKBACK :: http://sarange.net/trackback/158 관련글 쓰기

댓글을 달아 주세요

1  ... 385 386 387 388 389 390 391 392 393  ... 522 
BLOG main image
:+:+: 사랑愛 - Ever after :+:+:
사진을 좋아하고 최고의 아빠가 되길 원하는 두 아이의 아빠랍니다^^ <Facebook> Mitchell Jung
by 밋첼™

카테고리

분류 전체보기 (522)
사랑愛 (165)
사진愛 (89)
여행愛 (20)
개발자愛 (59)
음악愛 (9)
그외愛 (174)
리뷰愛 (6)

달력

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
textcubeDesignMyselfget rss