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