How can I display a runtime image in internet explorer? Please Help me....

S

Sima

Hi, All
I want to develop a runtime image with "Bitmap" object in Asp.Net and then
display it in my browser.
I do it with this code :
-----------------------------
Bitmap bm=new Bitmap(100,100);

Graphics g;

g=Graphics.FromImage(bm);

g.Clear(Color.White);

g.DrawLine(Pens.Red,0,0,50,50);

MemoryStream memo;

memo = new MemoryStream();

bm.Save( memo, System.Drawing.Imaging.ImageFormat.Bmp );

memo.Close();


Response.BinaryWrite( memo.ToArray() );

------------------------------------

After that I run this code , the runtime bitmap is showing in Paint
application. and not displayed it in my browser.
Please help me.
Best Regards,
Sima
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top