Encodes a sequence of bits into a sequence of characters representing its encoding. The following encodings are supported:
- Base64M (MIME)
where X is a power of 2 (for example, 2, 8, 16) and Y is not a power of 2 (for example, 10 and 36).
The result data type is VARCHAR or CLOB. Note that the return value may be NULL.
This statement is ANSI SQL:2011 compliant.
[TD_SYSFNLIB.] TO_BYTES ( instring, out_encoding )
- Name of the database where the function is located.
- The binary string value, that is, the sequence of characters to be encoded.
- The encoding FROM_BYTES uses to encode the sequence of characters specified by instring.