pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Nisha Joseph <nishatreesa@hotmail.com>
Cc: pgsql-odbc@postgresql.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Large Objects
Date: Wed, 28 May 2003 15:33:50 +0200
Message-ID: <20030528133350.GF57002@xs4all.nl> (raw)
In-Reply-To: <Law12-F459EXxt5BBBV0001dbe2@hotmail.com>
References: <Law12-F459EXxt5BBBV0001dbe2@hotmail.com>

On Wed, May 28, 2003 at 12:08:46PM +0000, Nisha Joseph wrote:
> 
> I want to store the photographs as Large Objects in the Postgres database.
> 
> Can anyone please help me regarding this?Can  you provide with sample code 
> for this?

Try libpqxx; the development versions have had large object support for
months now.  The only reason I haven't bumped that feature to stable yet
is that I don't have any test cases for mixed-mode access yet (ie.,
mixing read and write objects to the same large object).

It offers two interface levels for large objects: as standard C++ I/O
streams or as more C-style "write n bytes" or "write this std::string"
operations on handle objects.  Either should suit you, although you'd
want to be careful to disable whitespace skipping and such on I/O streams.

Find it at http://pqxx.tk/


Jeroen




view thread (13+ messages)  latest in thread

Message-ID: <20030528133350.GF57002@xs4all.nl>
Permalink:  ../20030528133350.GF57002@xs4all.nl/
Also on:    postgresql.org/message-id/20030528133350.GF57002@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, nishatreesa@hotmail.com, pgsql-odbc@postgresql.org
  Subject: Re: Large Objects
  In-Reply-To: <20030528133350.GF57002@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