Re: Store base64 in database. Use bytea or text?

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Store base64 in database. Use bytea or text?
Дата
Msg-id ihvs8u$cbe$2@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Store base64 in database. Use bytea or text?  (Andre Lopes <lopes80andre@gmail.com>)
Список pgsql-general
On 2011-01-28, Dmitriy Igrishin <dmitigr@gmail.com> wrote:
> --001636c598d9470a92049ae97be4
> Content-Type: text/plain; charset=UTF-8
>
> 2011/1/28 Andre Lopes <lopes80andre@gmail.com>
>
>> Hi,
>>
>> Another question about this subject.
>>
>> It is possible to cache this images from the database? In the future I
>> will need to cache the pictures.
>>

for HTTP caching to work you need to serve the resources with
apropriate HTTP headers, and probably need to honour HEAD requests in
a useful way.

you mention PHP, how does your web server communicate a HEAD request
to your PHP script?

it's beginning to look like disk might be a better place to store the
images.  it's more work to administer, but it lets the server and
cache interact naturally.

--
⚂⚃ 100% natural

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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: Error trying to install Ruby postgres gems on OS/X
Следующее
От: Mike Christensen
Дата:
Сообщение: Re: Error trying to install Ruby postgres gems on OS/X