How can I pass a raw System.Drawing.Image to an .ashx?
Posted
by Mike C
on Stack Overflow
See other posts from Stack Overflow
or by Mike C
Published on 2010-06-04T15:11:35Z
Indexed on
2010/06/08
5:12 UTC
Read the original article
Hit count: 338
I am developing an application that stores images as Base64 strings in xml files. I also want to allow the user to crop the image before saving it to the file, preferably all in memory without having to save a temp file, and then delete it afterwards. In order to display the newly uploaded image, I need to create a HTTP handler that I can bind the asp:Image to. The only examples for doing this online require passing the .ashx an ID and then pulling the image from a DB or other data store. Is it possible to somehow pass the raw data to the .ashx in order to get back the image?
Thanks,
Mike
© Stack Overflow or respective owner