Link to home
Start Free TrialLog in
Avatar of joshbm
joshbm

asked on

EASY Response.ContentType = "image"?

I forgot what is the Content Type for all images: GIF, JPG/JPEG, PNG?
Avatar of joshbm
joshbm

ASKER

Also once I do Response.ContentType = "image" or whatever do I just response.write "image.gif" to make the image appear?
Avatar of Göran Andersson
The mime types for
gif: image/gif
jpg: image/jpeg
png: image/png

After setting the content type, you have to read the image file and write it out to the response.stream.
Avatar of joshbm

ASKER

Okay is there a tutorial anywhere on response.stream? (just added 10 more pts)
ASKER CERTIFIED SOLUTION
Avatar of Göran Andersson
Göran Andersson
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial