return image in mod python

Abandoned besturk at gmail.com
Mon Nov 19 11:33:57 CET 2007


Hi i have a problem.

def showimage(req):
        from PIL import Image
        im=Image.open("c:\image-2.jpg")
        im.thumbnail((800,600), Image.ANTIALIAS)
        req.sendfile(im)



give me some error.
How can i return this image witdhout save ?


More information about the Python-list mailing list