Re: Display large object from database - Mailing list pgsql-novice

From Tom Lane
Subject Re: Display large object from database
Date
Msg-id 20202.1149519326@sss.pgh.pa.us
Whole thread Raw
In response to Display large object from database  ("Greg" <greg@officium.co.za>)
List pgsql-novice
"Greg" <greg@officium.co.za> writes:
> I am battling to open the image for reading into a stream.

From what?  The lo_xxx functions are intended to be used from C, not
from SQL.

You might be better off using a bytea column, which is a far simpler
construct than a large object.  It won't give you streamwise access,
just fetch or store the whole value at once, but that might be all you
need.

            regards, tom lane

pgsql-novice by date:

Previous
From: "Greg"
Date:
Subject: Display large object from database
Next
From:
Date:
Subject: Re: Display large object from database