"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