EncodeBase64

STD.Str.EncodeBase64( value [ , insertLF ] )

valueA DATA value containing the data to encode.
insertLFOptional. A boolean TRUE/FALSE flag indicating that, when TRUE, causes linefeeds to be inserted periodically in the output, potentially resulting in a multi-line string. If omitted, the default is TRUE.
Return: EncodeBase64 returns a STRING value.

The EncodeBase64 function returns a STRING containing the binary data encoded in Base64.

Example:

IMPORT STD;
dat:=X'0102030405';
EncodedStr:= STD.Str.EncodeBase64(dat);
EncodedStr;

See Also: DecodeBase64