security.Base64.ToByte

Decodes the given base64 string into a BYTE.

Syntax

security.Base64.ToByte(
   val64 STRING,
   ret BYTE )
  1. val64 defines the string in base64.
  2. ret defines a parameter of type BYTE to fill with data.

Usage

Decodes the base64 string specified in val64 and fills the BYTE variable with binary data.

Important: The BYTE must be located in memory.

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).