Go to documentation repository
The Base64EncodeFile method encodes a file to Base64is used to encode files using the Base64 scheme. The method returns a string.
See also The Base64Decode method and The SaveToFile method.
Method call syntaxSyntax for method invocation:
| Code Block |
|---|
function Base64EncodeFile (data_in: String): String |
Method arguments:
Example. At running Macro On macro 1, encode the 1.bmp file to Base64 and save write it to the 2.bmp file.
| Code Block |
|---|
if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN")
{
var s = Base64EncodeFile("d:\\1.bmp");
SaveToFile("d:\\2.bmp",s, true);
} |
...