public static byte[] decodeFromBase64(String encoded) {
return javax.xml.bind.DatatypeConverter
.parseBase64Binary(encoded);
}
public static String encodeToBase64(byte[] binary) {
return javax.xml.bind.DatatypeConverter
.printBase64Binary(binary);
}
Nothing special. Just nice to know. :-)