public static String base64_encode(String str)
public static String base64_encode(InputStream is)
  public static String base64_encode(String str)  {    CharBuffer cb = new CharBuffer();    byte []bytes = str.getBytes();    Base64.encode(cb, bytes, 0, bytes.length);    return cb.toString();  }