Writing an Image on a page without using Image control from other url as like url rewiring we write that image or content to our Location page url.
Using image As New Bitmap(Context.Server.MapPath("~/img/gsa_logo3.gif"))
Using ms As New MemoryStream()
image.Save(ms, System.Drawing.Imaging.ImageFormat.Gif)
ms.WriteTo(Context.Response.OutputStream)
Response.ContentType = "image/gif"
Response.Flush()
End Using
End Using
No comments:
Post a Comment