All you really need to do is set the correct mime type and write the
file to the user instead of to disk. In otherwords:
import cStringIO
...
# do you image handling
imgbuff = cStringIO.StringIO()
image.save(imgbuff)
self.set_header('Content-Type', 'image/jpg')
self.write(imgbuff.read())
Should get you what you need, though this isn't tested. Actually, it
may be possible to to just do image.save(self), but I'm not sure...
Try it and see!
Andrew
--
http://www.apgwoz.com