I am creating a custom control (pop up calendar) and it has a few images that go inside the calendar, I want it to be completely self contained...
I converted the images to a base64 encoded binary strings and have a function that would take the string and convert it back to binary.
I am having trouble returning object of System.Web.UI.WebControls.Image type... because the image is created using System.Drawing.Image class. Is there a way to have this done all in one file? I saw some examples where they make a page return mime type and them write out the stream, I was hoping there is a better way of doing it for my application.
I have tried many approaches to convert data types Drawing.Image to WebControl.Image but without much luck.
Any Suggestions?
-Lito
I converted the images to a base64 encoded binary strings and have a function that would take the string and convert it back to binary.
I am having trouble returning object of System.Web.UI.WebControls.Image type... because the image is created using System.Drawing.Image class. Is there a way to have this done all in one file? I saw some examples where they make a page return mime type and them write out the stream, I was hoping there is a better way of doing it for my application.
I have tried many approaches to convert data types Drawing.Image to WebControl.Image but without much luck.
Any Suggestions?
-Lito