Re: [INTERFACES] Large Objects

Поиск
Список
Период
Сортировка
От Jeroen T. Vermeulen
Тема Re: [INTERFACES] Large Objects
Дата
Msg-id 20030528133350.GF57002@xs4all.nl
обсуждение исходный текст
Ответ на Large Objects  ("Nisha Joseph" <nishatreesa@hotmail.com>)
Список pgsql-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 http://pqxx.tk/


Jeroen


В списке pgsql-odbc по дате отправления:

Предыдущее
От:
Дата:
Сообщение: select between two databases
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: select between two databases