GetBase64StringFromBinary method: File class
Syntax
GetBase64StringFromBinary()
Description
Use this method to read the complete contents of the binary file associated with the current File object, encode the data using Base64, and return the result as a Base64-encoded string.
Parameters
None.
Returns
A string containing the contents of the binary file encoded in Base64.
Example
Local File &F1;
Local string &base64string;
&F1 = GetFile("D:\image.jpg", "R", "UTF8", %FilePath_Absolute);
If &F1.IsOpen Then
&base64string = &F1.GetBase64StringFromBinary();
&F1.Close();
End-If;
Related Topics