Contents
encode()
A function converting bytea data into text formats
encode()
is a system function for converting bytea data into specific text formats.
encode()
was added in PostgreSQL 7.2.
Usage
encode (bytes
bytea
,format
text
) →text
format
can be one of the following values:
base64
escape
hex
Change history
- PostgreSQL 7.2
- added (commit 7771436e)
References
- PostgreSQL documentation: Text/Binary String Conversion Functions
- PostgreSQL documentation: base64
- PostgreSQL documentation: escape
- PostgreSQL documentation: hex