yet another image: db or filesystem ? question

Поиск
Список
Период
Сортировка
От Rick Schumeyer
Тема yet another image: db or filesystem ? question
Дата
Msg-id 469CDBAD.1010502@ieee.org
обсуждение исходный текст
Ответы Re: yet another image: db or filesystem ? question  (Richard Huxton <dev@archonet.com>)
Re: yet another image: db or filesystem ? question  (Steve Atkins <steve@blighty.com>)
Re: yet another image: db or filesystem ? question  (PFC <lists@peufeu.com>)
Список pgsql-general
I've read the earlier threads on whether to store images in the database
or filesystem.  I think I understand the pros and cons of each method,
but I have a question on a specific use case.

Let's say I have a web app, and I want to display the images in a web page.

a) if the images are in the filesystem (and also under the web root), no
problem.  Just use <img src="filename.jpg" />

b) if the images are in the database...do I need to create a temporary
file first in order to use the <img> tag?  Or is there some other HTML
way of doing this?



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Update of table lags execution of statement by >1 minute?
Следующее
От: mljv@planwerk6.de
Дата:
Сообщение: Re: createing indexes on large tables and int8