Handling Blobs with libpq

From: Stéphane Pinel <spinel(at)noos(dot)fr>
To: PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Handling Blobs with libpq
Date: 2003-03-20 09:56:44
Message-ID: 41AAAA03-5ABA-11D7-8432-000A27AFF5D2@noos.fr
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) or small blobs. Doc
says that (2) is more
appropriate but I need to work with blobs in memory, not from files.

Thanks for your help.

------------------------------------------------------------------------
---
Stephane
------------------------------------------------------------------------
---

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Gerhard Häring 2003-03-20 14:05:29 I want to send comments to the backend!
Previous Message Stéphane Pinel 2003-03-20 09:48:27 Handling Blobs with libpq