Open main menu

CDOT Wiki β

Changes

PostgreSQL Adapter Project - Resources

88 bytes added, 12:39, 6 December 2010
PostgreSQL Specifications
: Binary - hex
:: PostgreSQL can not store values of more than several thousands bytes within any data-type except large objects, nor can binary data be easily entered within single quotes. Instead, large objects (BLOB) are used to store very large values and binary data. From PostgreSQL documentation “String Functions and Operators”[6] we catch the function ENCODE(data bytea, type text). This function encodes binary data to an ASCII-only representation. The supported types are: base64, hex, escape.[http://lab.lonerunners.net/blog/binary-data-fetching-through-sqli]
: ENCODE & DECODE [http://www.postgresql.org/docs/current/static/functions-string.html]
: Example [http://stackoverflow.com/questions/3103242/inserting-text-string-with-hex-into-postgresql-as-a-bytea]
<source lang = java>
1
edit