Пример #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);
 }