private static byte [ ] convert_viewable_to_bytes ( String string ) { if ( null == string ) { return null ; } if ( 0 == string . length ( ) ) { return EMPTY_BYTE_ARRAY ; } return Base64Coder . base64Decode ( convert_to_bytes ( string ) ) ; }
Convert the string to bytes using UTF - 8 encoding and then run it through the base64 decoding .