pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Stéphane Pinel <spinel@noos.fr>
Cc: PostgreSQL-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Handling Blobs with libpq
Date: Thu, 20 Mar 2003 16:11:31 +0100
Message-ID: <20030320151131.GF28190@xs4all.nl> (raw)
In-Reply-To: <41AAAA03-5ABA-11D7-8432-000A27AFF5D2@noos.fr>
References: <41AAAA03-5ABA-11D7-8432-000A27AFF5D2@noos.fr>

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




view thread (6+ messages)  latest in thread

Message-ID: <20030320151131.GF28190@xs4all.nl>
Permalink:  ../20030320151131.GF28190@xs4all.nl/
Also on:    postgresql.org/message-id/20030320151131.GF28190@xs4all.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jtv@xs4all.nl, spinel@noos.fr
  Subject: Re: Handling Blobs with libpq
  In-Reply-To: <20030320151131.GF28190@xs4all.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox