security.HexBinary.LoadBinary

Reads binary data from a file and converts it to hexadecimal.

Syntax

security.HexBinary.LoadBinary(
   path STRING )
  RETURNS STRING
  1. path defines the path to the binary file.

Usage

Reads the file located at path and returns this binary data in hexadecimal format.

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

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).