Vicki Brown wrote:
> At 01:47 -0400 4/23/02, Liam Quinn wrote:
> 
>>Your CGI script needs to print its own headers (most importantly,
>>Content-Type), then a blank line, then the JPEG data.
> 
> 
> Of course (duh, again).  This, (also of course :-( is something that "my" CGI
> (I did not write it) is "helpfully" doing for me... and it's hard-coded to
> assume text/html.
> 
> Now I get to find out how easy it is to modify that...  glurck

Well you could
a) save the JPEG somewhere in a temprary file (say 
/cgi-bin/temp/jpeg0001.jpg)
and
b) print out a basic
<html><body>
<img src = "/cgi-bin/temp/jpeg0001.jpg" alt = "Picture">
</body></html>

The only trick is that you need to do some garbage collection to remove 
all the old files in /cgi-bin/temp

Francis

PS Since he's on this mailing list I'd like to take a moment and thank 
Liam Quinn for his truly excellent WDG guides to HTML 4 and CSS
-- 
Francis Turner, CIO Juelich Enzyme Products GmbH
***** new contact details *****
[EMAIL PROTECTED] - http://www.biocatalysis.com
+49-611-962-4693(office) +49-173-291-7278(cell)

If you're not part of the solution, you're part of the precipitate.
             -- Henry J. Tillman


Reply via email to