how can i return a image in mod python ?

Abandoned besturk at gmail.com
Sun Nov 18 01:46:20 EST 2007


Hi..
I want to show the pictures with mod python directly.

def showimage(req):
    some process...
    open /var/www/a.jpg and print

for example if i open:
domain.com/a.py/showimage
It must show me image directly (no redirect or html)

How can i do it ?
I'm sorry for my bad english.
Kind Regards....



More information about the Python-list mailing list