RENDERING TO Response Output Stream

Feb 13, 2014 at 12:11 AM
I am able to capture the aspx into HTML, by overriding render in a page.

I then use:

image IMG = HtmlRenderer.HtmlRender.RenderToImage(Pagehtml)

where Pagehtml is a string containing all the page html code.

I set
Response.ContentType = "image/Png"

I save to the output buffer of the Response
IMG.Save(Response.OutputStream, ImageFormat.Png)

I send it to the client screen

But I get a blanck page...... any other ideas?????
Feb 13, 2014 at 7:27 AM
I'm not familiar with ASP,
if you save the image to disk can you see it correctly?
If you use existing image (and not rendered by HTML Renderer) to save to response stream does it works correctly?
It doesn't look like HTML Renderer issue, try posting on StackOverflow.