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