WriteBase64StringToBinary method: File class
Syntax
WriteBase64StringToBinary(encoded_string)
Description
Use this method to decode the input string using Base64 and write the resulting bytes to the output file associated with the current File object.
Parameters
| Parameter | Description |
|---|---|
|
encoded_string |
Specifies a Base64-encoded string. |
Returns
None.
Example
Local File &F1;
Local string &base64string;
/* Load the Base64 string data into &base64string */
&base64string = "...";
&F1 = GetFile("D:\anImage.jpg", "W", "UTF8", %FilePath_Absolute);
If &F1.IsOpen Then
&F1.WriteBase64StringToBinary(&base64string);
&F1.Close();
End-If;
Related Topics