Skip site navigation (1) Skip section navigation (2)

Re: Large Objects

From: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
To: Nisha Joseph <nishatreesa(at)hotmail(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Large Objects
Date: 2003-05-28 13:33:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfacespgsql-odbc
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


In response to

pgsql-odbc by date

Next:From: Andrew AyersDate: 2003-05-28 20:04:32
Subject: Re: TEXT datatype and ODBC?
Previous:From: Nisha JosephDate: 2003-05-28 12:08:46
Subject: Large Objects

pgsql-interfaces by date

Next:From: Christoph HallerDate: 2003-05-28 13:45:23
Subject: Re: Large Objects
Previous:From: Nisha JosephDate: 2003-05-28 12:08:46
Subject: Large Objects

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group