Re: Storing images as BYTEA or large objects

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Storing images as BYTEA or large objects
Дата
Msg-id 20080213134532.GB11314@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Storing images as BYTEA or large objects  (Koen Vermeer <koen@vermeer.tv>)
Ответы Re: Storing images as BYTEA or large objects
Список pgsql-general
Koen Vermeer wrote:

> Instead of base64 encoding, I guess it would be easier to just escape
> the required bytes and store them in a bytea.

Actually, if you have access to the pqExecParams() call, you can pass
the bytes to a bytea column unescaped, which AFAIK saves some processing
on both the client and server.

To get the bytes back unescaped, I think you could use a binary cursor.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Brad Nicholson
Дата:
Сообщение: Re: Perceived weaknesses of postgres
Следующее
От: Koen Vermeer
Дата:
Сообщение: Re: Storing images as BYTEA or large objects