@JsonIgnore
    public byte[] getDecodedContentAsBytes() {

        if (content == null) {
            return (null);
        }

        if ("base64".equalsIgnoreCase(encoding)) {
            return (Base64.getDecoder().decode(content));
        }

        return (content.getBytes());
    }
@ JsonIgnore public byte [ ] getDecodedContentAsBytes ( ) { if ( content == null ) { return ( null ) ; } if ( "base64" . equalsIgnoreCase ( encoding ) ) { return ( Base64 . getDecoder ( ) . decode ( content ) ) ; } return ( content . getBytes ( ) ) ; }
Returns the content as a byte array, decoding from base64 if necessary.
For String content it is recommended to use getDecodedContent().

@return the content as a byte array, decoding from base64 if necessary