Re: Handling Blobs with libpq

From: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
To: Stéphane Pinel <spinel(at)noos(dot)fr>
Cc: PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Handling Blobs with libpq
Date: 2003-03-20 15:11:31
Message-ID: 20030320151131.GF28190@xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Thu, Mar 20, 2003 at 10:56:44AM +0100, Stéphane Pinel wrote:
>
> 2- Larges objects (lo_import)
>
> My main need is storing pictures (like Jpegs etc) or small blobs. Doc
> says that (2) is more
> appropriate but I need to work with blobs in memory, not from files.

You don't _have_ to import them from files--lo_import is just a convenience
function for reading a file into memory and writing it to a large object.
Just use the other large object functions: lo_open(), lo_creat(),
lo_read(), lo_write(), lo_seek().

Jeroen

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2003-03-20 15:22:51 Re: I want to send comments to the backend!
Previous Message D'Arcy J.M. Cain 2003-03-20 14:55:32 Re: I want to send comments to the backend!