Обсуждение: Handling Blobs with libpq

Поиск
Список
Период
Сортировка

Handling Blobs with libpq

От
Stéphane Pinel
Дата:
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