security.Base64.FromByte

Encodes the given BYTE data in base64.

Syntax

security.Base64.FromByte(
   source BYTE )
  RETURNING result STRING
  1. source is the BYTE to be encoded.
  2. result is the base64 encoded string.

Usage

Encodes the given BYTE data in base64 and returns the string.

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