Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group