Image Problems

FrePcHeLp

New Member
Is there any way of returning an image dynamically from a asp.net script to a html page?<BR><BR>i.e. in the html page <img src=http://aspmessageboard.com/archive/index.php/"aspscript.aspx"><BR><BR>Then the script or c# code, creates the image dynamically and returns it to be displayed in the html page.<BR><BR>Any ideas? How do i return the image object, and if it is possible, would I be able to pass parameters to the script in this way?<BR><BR>Any thoughts to point me in the right direction are greatly appreciated.This code on aspscript.aspx should do it:<BR><BR>//Get your image from wherever<BR>Image img;<BR>//Set the binary stream to the correct output type<BR>Response.ContentType = "image/jpeg";<BR>//Write the image to the binary stream<BR>img.Save(Response.OutputStream, ImageFormat.Jpeg);
 
Back
Top