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
Post a Comment