display image through cgi python html

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Jul 24 12:10:24 CEST 2007

On Tue, 24 Jul 2007 11:58:47 +0200, Ladislav Andel wrote:

> Here is what I have in image.cgi but it is incorrect and i'm not able to 
> find it on the web.
> #!/usr/bin/python
> print "Content-Type: image/png\n"
> print 'image.png'

You have to print the image, not the name.  Read the binary file and print

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list