jquery - Return Image type from MVC controller and display -


i have application user can select image via file input. when image selected, upload image via ajax controller , convert grayscale. conversion method returns system.drawing.image object. want return grayscale image object on ajax success function , display on div in same page original image uploaded. please notice image never stored anywhere, there no reason use file return action in controller. can do? greetings luis.

what base64 encode image , send client , in client in html:

<img src="data:image/png;base64,' + data + '" /> 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -