TEXTTOBASE64
The TEXTTOBASE64 encoding function converts a text item to Base64 format.
- Syntax:
- TEXTTOBASE64 (single-object-expression)
- Meaning:
- TEXTTOBASE64 (text_object_to_convert)
- Returns:
- A single-text-item
The TEXTTOBASE64 function receives a text object and uses the MIME implementation to convert the text to Base64 format. The MIME implementation adds the <CR><LF> character sequence after every 76 bytes and also at the end of the output string.
TEXTTOBASE64 returns a single data object that represents the Base64 encoding of the original text object. If an error occurs during conversion, no data is returned.
Example
TEXTTOBASE64("Some Example Data")
Output: U29tZSBFeGFtcGxlIERhdGE=