pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Large objects
3+ messages / 3 participants
[nested] [flat]

* Large objects
@ 2001-09-19 19:33 Carlos López Holtmann <clopez@fadu.uba.ar>
  0 siblings, 0 replies; 3+ messages in thread

From: Carlos López Holtmann @ 2001-09-19 19:33 UTC (permalink / raw)
  To: pgsql-odbc

Hi

I'm trying to work with large objects from PowerBuilder through psqlodbc
but I couldn't find how to actually put the objects into the database.
I've created the lo type and tested it with msAccess and it worked fine.

Do I have to call a function from psqlodbc.dll? Any hint or link will
be welcome.

Thanks in advance
--
Carlos López Holtmann
cl3z@dc.uba.ar



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Large Objects
@ 2003-05-28 12:08 Nisha Joseph <nishatreesa@hotmail.com>
  2003-05-28 13:33 ` Re: Large Objects Jeroen T. Vermeulen <jtv@xs4all.nl>
  0 siblings, 1 reply; 3+ messages in thread

From: Nisha Joseph @ 2003-05-28 12:08 UTC (permalink / raw)
  To: pgsql-odbc; pgsql-interfaces@postgresql.org

Hi,

My application ,written in VC++ requires to copy data in a Microsoft Access 
Database to
Postgres database,remotely. I have been using odbc Driver 7.02.005 with
Postgresql 7.3.2 .

I need to transfer photographs stored as OLEObjecttype in a
Microsoft Aceess 2000 database to the  Postgres database.Right now I am 
using bytea type for storing photographs in the Postgresql database.

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?

Thanks in Advance

Nisha

_________________________________________________________________
Sign-up for a FREE BT Broadband connection today! 
http://www.msn.co.uk/specials/btbroadband




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Large Objects
  2003-05-28 12:08 Large Objects Nisha Joseph <nishatreesa@hotmail.com>
@ 2003-05-28 13:33 ` Jeroen T. Vermeulen <jtv@xs4all.nl>
  0 siblings, 0 replies; 3+ messages in thread

From: Jeroen T. Vermeulen @ 2003-05-28 13:33 UTC (permalink / raw)
  To: Nisha Joseph <nishatreesa@hotmail.com>; +Cc: pgsql-odbc; pgsql-interfaces@postgresql.org

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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-05-28 13:33 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-09-19 19:33 Large objects Carlos López Holtmann <clopez@fadu.uba.ar>
2003-05-28 12:08 Large Objects Nisha Joseph <nishatreesa@hotmail.com>
2003-05-28 13:33 ` Re: Large Objects Jeroen T. Vermeulen <jtv@xs4all.nl>

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