security.Base64.ToByte

Decodes the given base64 string into a BYTE.

Syntax

security.Base64.ToByte(
   source STRING,
   destination BYTE )
  1. source is a string in base64.
  2. destination is the BYTE to fill with data.

Usage

Decodes the given base64 string 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).