Handling Blobs with libpq

From: Stéphane Pinel <spinel(at)exenevex(dot)com>
To: PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Handling Blobs with libpq
Date: 2003-03-20 09:48:27
Message-ID: 196D6655-5AB9-11D7-8432-000A27AFF5D2@exenevex.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

What is the best approach to handle blobs with libpq ?

I've read in documentation that there are 2 ways:

1- Bytea
2- Larges objects (lo_import)

My main need is storing pictures (like Jpegs etc). Doc says that (2) is
more
appropriate but I need to work with blobs in memory, not from files.

Thanks for your help.

Stephane

Browse pgsql-interfaces by date

  From Date Subject
Next Message Stéphane Pinel 2003-03-20 09:56:44 Handling Blobs with libpq
Previous Message Brian Bruns 2003-03-19 23:19:22 Re: Roadmap for FE/BE protocol redesign