security.Base64.LoadBinary

Reads data from a file and encodes to base64.

Syntax

security.Base64.LoadBinary(
  path STRING )
  RETURNING result STRING
  1. path is the path to the binary file.
  2. result is a string encoded in base64.

Usage

Reads the file located at path and encodes these binary data in Base64 format.

For example, this method can be used to send images through a network.

Throws an exception in case of errors, and updates STATUS with an error code.