security.Base64.FromStringWithCharset
Encodes the given string in base64, based on a given charset.
Syntax
security.Base64.FromStringWithCharset(
clearVal STRING,
charset STRING )
RETURNS STRING
- clearVal defines the string to be encoded.
- charset defines the character set to be used.
Usage
This method encodes the string, clearVal, based on the specified charset, charset, and returns it in base64.
Before conversion, the string is converted from the local DVM charset to the specified encoding.
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).