J
Jonathan Wood
I've figured out how to create an image on the fly on my Website. Once
created, I write the image to the page using code like this:
Bitmap bm = [...]
[...]
Response.ContentType = "image/jpeg";
bm.Save(Response.OutputStream, ImageFormat.Jpeg);
The code I have does indeed display the graphic, but the page shows nothing
else. I need to write the image to a location within my Web page.
My preference would be to create a Web control, that I can embed in the
page, and then write the image from the control. However, the control's
Render handler provides an HtmlTextWriter argument, which does not have an
OutputStream property.
How can I output the graphic as the control's output?
Thanks.
Jonathan
created, I write the image to the page using code like this:
Bitmap bm = [...]
[...]
Response.ContentType = "image/jpeg";
bm.Save(Response.OutputStream, ImageFormat.Jpeg);
The code I have does indeed display the graphic, but the page shows nothing
else. I need to write the image to a location within my Web page.
My preference would be to create a Web control, that I can embed in the
page, and then write the image from the control. However, the control's
Render handler provides an HtmlTextWriter argument, which does not have an
OutputStream property.
How can I output the graphic as the control's output?
Thanks.
Jonathan