I\'m using flask for my application. I\'d like to send an image (dynamically generated by PIL) to client without saving on disk.
Any idea how to do this ?
It turns out that flask provides a solution (rtm to myself!):
from flask import abort, send_file try: return send_file(image_file) except: abort(404)