Re: Load Image File From PostgreSQL DB

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "dbalinglung *EXTERN*" <alamsurya(at)centrin(dot)net(dot)id>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Load Image File From PostgreSQL DB
Date: 2008-12-30 15:39:23
Message-ID: D960CB61B694CF459DCFB4B0128514C202EA7575@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

dbalinglung wrote:
>> I seriously doubt you could store an image in oid typed column, because
>> "The oid type is currently implemented as an unsigned four-byte
>> integer." (from postgresql 8.2 manual). I too use Zeos with no problems
>> using bytea type.
>
> Ok, I'll try your sugestion, many thanks bro.

Large Objects (http://www.postgresql.org/docs/current/static/largeobjects.html)
use OID columns, and they work fine for storing binary data like images.

But bytea will work just as fine.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Julius Tuskenis 2008-12-30 16:06:53 Re: Load Image File From PostgreSQL DB
Previous Message justin 2008-12-30 14:18:36 Re: [PGSQL 8.3.5] Use of a partial indexes