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

밋첼™'s Blog is powered by Tattertools

'base64'에 해당되는 글 1건

  1. 2007/12/21 JAVA base64 incoding decoding

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

댓글을 달아 주세요

티스토리 사용자는 이곳을 클릭하시면 로그인 됩니다.

1 
BLOG main image
:+:+: 사랑愛 - Ever after :+:+:
사진을 좋아하고 최고의 아빠가 되길 원하는 두 아이의 아빠랍니다^^ <Facebook> Mitchell Jung
by 밋첼™

카테고리

분류 전체보기 (495)
사랑愛 (160)
사진愛 (86)
여행愛 (20)
개발자愛 (57)
그외愛 (167)
리뷰愛 (5)

달력

«   2012/02   »
      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      

믹시
textcubeDesignMyselfget rss