Re: Attaching docs, Virtual images

Tony Sanders (sanders@BSDI.COM)
Thu, 16 Dec 1993 18:09:15 -0600


> >using httpd 1.0) A document contains <IMG SRC="/cgi-bin/getgif" ISMAP>.
> >The script "getgif" spits out the mime header "Content-type: image/gif"
The HTTP header looks like this (between the "cut here" parts):
-------- cut here --------
HTTP/1.0 200 Document follows
MIME-version: 1.0
Content-type: image/gif

GIFDATA...
-------- cut here --------

The blank line is required after the header info.

> I'll pick up the second for you. Your problem seems to be not on the
> idea, but on the choice for implementation. While you could try
Using a temp file for this is a very ugly kludge and has many problems.
It's very simple and elegant to just return the image on the fly
when it's requested. That way you don't have to worry about the
numerous cases when people request the document but don't request
the image (like delayed image loading, or browsers that don't support
images).

--sanders