Handling Blobs with libpq - Mailing list pgsql-general

From Stéphane Pinel
Subject Handling Blobs with libpq
Date
Msg-id ADF671C5-5AC4-11D7-8432-000A27AFF5D2@noos.fr
Whole thread Raw
List pgsql-general
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
------------------------------------------------------------------------
---


pgsql-general by date:

Previous
From: Ferruccio Zamuner
Date:
Subject: search_path for schemas
Next
From: Olleg Samojlov
Date:
Subject: Re: About tcp connection