B64encode
This function encodes binary data stored in a BLOB (Binary Large Object) as a base 64 string. It returns the number of characters written to the string.
Syntax
LENGTH=B64Encode(SOURCE_BLOB, DEST_CLOB)
SOURCE_BLOB
has typeBlbfile
.DEST_CLOB
has typeClbfile
orChar
.LENGTH
has typeInteger
.
Example
# Write BLOB into a base 64 CLOB
Funprog DECODE(SOURCE, DESTINATION)
Const Blbfile SOURCE
Variable ClbFile DESTINATION
Local Integer I
I=B64Encode(SOURCE,DESTINATION)
End I
See also
b64Decode, strEncode, strDecode