CGI and images

Yannick Le Teigner yleteigne1 at cybercable.fr
Sun Jul 2 10:06:11 EDT 2000


Hi,
I want to generate an image - plot and display it via a cgi script.
Creating the image is not hard, but I can't print the image on the page.

# this doesn't work the browser doesn't diplay errors but no images either...
print "Content-type: image/gif\n\n"
print open(myImage, "rb").read()

Any ideas?

Thank you!
Yannick






More information about the Python-list mailing list