public static String getFromBASE64(String s) { | |
if (s == null) return null; | |
// Base64 decoder = new Base64(); | |
byte[] asBytes = Base64.getDecoder().decode(s); | |
return new String(asBytes); | |
// try { | |
byte[] b = decoder.decodeBuffer(s); | |
// } catch (Exception e) { | |
// return null; | |
// } | |
} |