security.Base64.FromByte

Encodes the given BYTE data in base64.

Syntax

security.Base64.FromByte(
   data BYTE )
  RETURNS STRING
  1. data defines the data of type BYTE to be encoded.

Usage

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