My application (developed in Delphi and ZEOS components) uses PostgreSQL 8.4 and stores some thumbnail images into a bytea
column.
I want to migrate to PostgreSQL 9.2 and have restored the dump and everything works fine except when I try to retrieve those images: Postgres 9.2 uses hex
for output representation instead of escape
used in Postgres 8.4.
There are two possible solutions: Change the Postgres 9.2 settings for escape
representation or change the hex
string in binary data via application. But what is the best solution? Why did PostgreSQL 9.X change to hex
for bytea
representation?
It is a simple setup or are there technical reasons?