Using <IMG> w/ CGI call. Stream Images?
Posted on 1998-07-21
I have been programming in perl and doing some CGI work for a few months now and I must admite its pretty interesting stuff.
I have seen and figured many things but I just can't figure out how some sites do this trick. They make a call to a CGI script via an <IMG> tag on their webpage. Normally when I do such a thing I can only return back the single JPG or GIF image file and that's that. But these site make the same call and have moving images returned back, many slides of JPG or GIF pics coming down being laid "on top" of one another (it appears to be streaming video just really chunky). Example webpage would be:
How do they get the streaming images without a META REFRESH or something? Does the CGI script have to return NO-CACHE and then send back a single JPG/GIF image, and then.....Well now I'm lost. What next?! Maybe I should return back a different CONTENT-TYPE header?
Please, any answeres would be greatly appreciated!