display image through cgi python html
Ladislav Andel
ladaan at iptel.org
Tue Jul 24 07:25:18 EDT 2007
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 "Content-Type: image/png\n"
>> print 'image.png'
>>
>
> You have to print the image, not the name. Read the binary file and print
> it.
>
> Ciao,
> Marc 'BlackJack' Rintsch
>
More information about the Python-list
mailing list