Re: Display large object from database

From: <greg(at)officium(dot)co(dot)za>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Display large object from database
Date: 2006-06-05 17:11:33
Message-ID: 701199870FB14AE29B2CC40255DF2477.MAI@mail03.glodns.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Thanks, I read the pgAdmin help on a bytea column, but it doesn't specify its maximum size. What is
the largest filesize I can fit into a bytea column?

Thanks

----- Original Message -----
From: Tom Lane
To:
Cc: pgsql-novice(at)postgresql(dot)org
Sent: Mon, 05 Jun 2006 10:55:26 -0400
Subject: Re: [NOVICE] Display large object from database

"Greg" <greg(at)officium(dot)co(dot)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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2006-06-05 18:00:39 Re: Display large object from database
Previous Message Tom Lane 2006-06-05 14:55:26 Re: Display large object from database