How to decode / parse base64 Strings in Java
/**
* @param base64
* A valid base64 String, without any prefixes
* e.g. no leading "data:image/png;base64"
* @return Decoded base64 String as plain text
*/
public static String base64ToString(final String base64) {
return new String(DatatypeConverter.parseBase64Binary(base64));
}
/images/book.jpg