Inline HTML images (was: putting Image from database in cgi app)
Cameron Laird
claird at lairds.com
Wed May 21 09:27:10 EDT 2003
In article <mailman.1053520713.15187.python-list at python.org>,
Fredrik Lundh <fredrik at pythonware.com> wrote:
.
.
.
>you need two different CGI's (or two different code paths in the
>same CGI).
>
>the main CGI generates the HTML page, with all the information you
>need, and a reference to the image. the user's browser will render
>the HTML, and issue a request for the image (unless the user has
>switched off image loading, or uses a text-only browser, etc).
>
>the other CGI returns the image, if and when the browser asks for it.
.
.
.
Fredrik, your advice is sound and considerately detailed.
There *is* a standard, though, for inlining images, which I
gather the original questioner thinks he wants. <URL: http://
click.unixreview.email-publisher.com/maaa540aaX6NLa2scaRb/ >
provides details.
--
Cameron Laird <Cameron at Lairds.com>
Business: http://www.Phaseit.net
Personal: http://phaseit.net/claird/home.html
More information about the Python-list
mailing list