The util.Strings class / util.Strings methods |
Decodes a base64 encoded string and returns the corresponding string.
util.Strings.base64DecodeToString( source STRING ) RETURNING result STRING
The util.Strings.base64DecodeToString() method converts the Base64 encoded string passed as parameter to an array of bytes, then it converts the byte array to a string representation in the current locale, and returns that string.
If the Base64 source string contains a sequence of bytes that does not represent a valid character in the current application locale, the function returns NULL.
IMPORT util MAIN DEFINE base64 STRING LET base64 = util.Strings.base64EncodeFromString( "ForĂȘt" ) DISPLAY base64 DISPLAY util.Strings.base64DecodeToString( base64 ) END MAIN