Re: To store and retrive image data in postgresql

Поиск
Список
Период
Сортировка
От Christophe
Тема Re: To store and retrive image data in postgresql
Дата
Msg-id E9198697-7CB6-46CD-ABE2-92E9A1AED0C0@thebuild.com
обсуждение исходный текст
Ответ на To store and retrive image data in postgresql  (aravind chandu <avin_friends@yahoo.com>)
Список pgsql-general
On Jul 7, 2008, at 12:22 PM, aravind chandu wrote:
>          I need to store an image in postgresql database and after
> that i need to retrive the image back.Can you please help me how to
> do this?

Assuming you mean an image as in a binary visual image (like a JPEG),
the data type you want is BYTEA. How to actually get BYTEA data into
and out of PostgreSQL depends on what client library and language you
are using.

If your application allows it, it is often far more efficient to
store a reference to the image in the database (such as a URI or file
path), rather than the image itself.

В списке pgsql-general по дате отправления:

Предыдущее
От: Lennin Caro
Дата:
Сообщение: Re: To store and retrive image data in postgresql
Следующее
От: Keaton Adams
Дата:
Сообщение: Query running slow but was running fine before