[Dancer-users] sending an image to an ajax request
Иван Бессарабов
ivan at bessarabov.ru
Sat Nov 6 14:26:03 CET 2010
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.
More information about the Dancer-users
mailing list