6 Nov
2010
6 Nov
'10
1:26 p.m.
If i understand you correctly everything is working right when you request images from browser.
My sense is that it is not possible to send an image back as a result of an ajax query. An ajax query can only return text, json or html (all different kinds of text, really). I am assuming that send_file() sends a binary stream back that the browser has no way of handling as a result of an ajax request.
Am I right or wrong?
I think that you are right. If you need and image from ajax request you can just get the url of that image and then use the use to place the image on the page or something.