public static byte[] base64Decode(String data) {
   try {
     return Base64.decode(data);
   } catch (ParseException e) {
     return null;
   }
 }
 public static String base64Encode(byte[] data) {
   return Base64.encode(data);
 }