Using ServerXMLHTTP object to show (stream or download) and image , or any other file for that matter.
It can be used to tell browser to open that image (or any other file, like pdf) or force it to download instead.
Liked the simplicity of it, and wanted to make sure I have it handy when needed.
Create a new ASP page, and paste the following code in the page:
Visual Basic Script
< % @ Language=VBScript % >
Response.ContentType = "image/jpeg"
' Uncomment to prompt user for download or run with associated program.
' Response.AddHeader "content-disposition","attachment;filename=ReadMe.jpg"
Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")' Point to an image file with adequate access permissions granted
objHTTP.open "GET", "http://servername/picture.jpg",false
Set objHTTP = Nothing
Save the file to the Web server.
Browse to the file.