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