Function:
decode(string text, type text)
Description:
bytea Decode binary data from string previously encoded with encode. Parameter type is same as in encode.
Example:
Code:
decode('MTIzAAE=', 'base64')
Rezult: 123\000\001
Function:
encode(data bytea, type text)
Description:
Encode binary data to ASCII-only representation. Supported types are: base64, hex, escape.
Example:
Code:
encode( '123\\000\\001', 'base64'
Rezult: MTIzAAE=