Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page The KillTimer method  The Base64EncodeW method Next page


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:

  1. data_in is a required argument. It specifies the path to the file that you want to encode.

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);
}
  • No labels