Re: Attaching docs, Virtual images

Tony Sanders <sanders@BSDI.COM>
Errors-To: sanders@BSDI.COM
Errors-To: sanders@BSDI.COM
Message-id: <199312170009.SAA17371@austin.BSDI.COM>
To: www-talk@www0.cern.ch
Subject: Re: Attaching docs, Virtual images 
In-Reply-To: "Jason B. Bluming"'s message of Thu, 16 Dec 1993 14:38:59 PST.
Errors-To: sanders@BSDI.COM
Reply-To: www-talk@www0.cern.ch
Organization: Berkeley Software Design, Inc.
Date: Thu, 16 Dec 1993 18:09:15 -0600
From: Tony Sanders <sanders@BSDI.COM>
Content-Length: 901
> >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