Re: display image through cgi python html

2007-07-24 Thread Ladislav Andel
Thanks for quick reply. Yes, that's the hint I needed. Lada Marc 'BlackJack' Rintsch wrote: > 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 "Cont

Re: display image through cgi python html

2007-07-24 Thread Steve Holden
Marc 'BlackJack' Rintsch wrote: > 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

Re: display image through cgi python html

2007-07-24 Thread Marc 'BlackJack' Rintsch
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 fi