Re: Images stored in bytea datatype

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Images stored in bytea datatype
Date: 2014-04-14 21:23:09
Message-ID: 7215927.NSC1j55Iae@skynet.simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Monday, April 14, 2014 04:40:50 PM ss dev wrote:
> Hello,
> We are looking at exporting the data from postgres database and import
> it to a different program. On postgres database the images are stored in
> bytea data type. How can I transfer the data from postgres to a tiff
> format. Any help is appreciable.
>
> Thanks,
> Dev.

For whatever language you're using to do it, consult the relevant docs for
accessing bytea fields. They're usually pretty easy for reading, although pay
attention to the PostgreSQL server setting for bytea_output - most older
drivers expect that to be in "escape" format, not the more recent "hex"
format.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message James David Smith 2014-04-15 22:28:55 Re: Don't understand error?
Previous Message ss dev 2014-04-14 20:40:50 Re: Images stored in bytea datatype