security.HexBinary.ToBase64

Converts an hexadecimal string to the base64 equivalent

Syntax

security.HexBinary.ToBase64(
   source STRING )
  RETURNING result STRING
  1. source is a string in its hexadecimal form.
  2. result is a string encoded in base64.

Usage

Decodes the given hexadecimal string and returns it in base64.

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