예제 #1
0
 public static byte[] decode(String s) {
   try {
     return Base64.decode(s);
   } catch (IOException exp) {
     throw new IORuntimeException(exp);
   }
 }
예제 #2
0
 public static String encode(byte[] b) {
   return Base64.encodeBytes(b);
 }