how to render a memory image in web control?

  • Thread starter Thread starter thxBruin
  • Start date Start date
T

thxBruin

I have a web control which include a memory image and i want to render this
image to client. In fact, i can save it to disk and then render it like:
Writer.Write("<img SRC=" + DiskImagePath + ">")
But i dislike this method, as you know, in activex control, we can send the
variant stream to client browser. So the question is how to render a memory
image not a disk image file in ASP.net component?
 
I don't know about a web control but when I had a jpeg image in memory that
I pulled off a tcp/ip stream I used Response.BinaryWrite to render the image
to the browser without having to first store the image to disk first.
 
I know how to display a picture in aspx. But in web form control, i must
override the base.Render(). This function always accept a char-aware param.
So i want to know how to send my picture to it, or may be i should override
another function?
 
Back
Top