Showing an image

  • Thread starter Thread starter tma
  • Start date Start date
Something as simple as this should work:

Dim image As System.Drawing.Image =
System.Drawing.Image.FromFile("PATH")
Response.Clear()
image.Save(Response.OutputStream,
System.Drawing.Imaging.ImageFormat.Gif)
Response.End()
image.Dispose()

Karl
 

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

Similar Threads

HTML / ASPX image 11
MasterPage Menu Item 1
image url in gridview, problem 1
Specify Image location in Web.Config 7
broken image problem 1
image border in datagrid 2
Table data not centering 1
Email an image 3

Back
Top