please refer to my answere and this question in below URL of EE:
http://www.experts-exchang
Main Topics
Browse All TopicsHello,
I'm getting a lot of new problems today, so here is my next question, how do i forca browser to save a jpg picture from a link instead of automatically opening it in the browser itself?
The best I could find is this link: http://codingforums.com/ar
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
please refer to my answere and this question in below URL of EE:
http://www.experts-exchang
Yes, I have multiple logotips stored in JPG, GIF and other formats wich link directly to them. They are accually op the same server just in a /image/ directoy.
But as normaly browser acts when you click an image link - it opens in browser first. I want a person not needing to right-click and choose save target as, but with normal left-click to have act as it would have chosen save-targe-as already.
Basically, the useronly has to choose where to save the file if he wants to. I dont want to automatically download anything for him in any way, I just want to make things easier for the user ;)
-------This creates a file object and gets all its content as binary input
Set oStream = Server.CreateObject("ADODB
oStream.Open
oStream.Type = 1
oStream.LoadFromFile(path)
--------------------------
Response.Clear()
------------Setting the reponse buffer so what the whole is downloaded properly------------
Response.Buffer = true
-----telling the browser/response that content could be anything , the browser should interpet depending on file extension.In your case u can set Jepg see belloe commented code:
//response.ContentType ="image/jpeg"
Response.ContentType = "whatever"
---------------------
adding the header for download telling rhe browser the file should considered as attachment not as inline hence it show a save dialog, also i specify the the name as which it should be stored
Response.AddHeader "content-disposition","att
--------------------------
end select
--------------- reading file object data to response writer which will send the data to browser
Response.BinaryWrite oStream.Read
-----------clearing all objects/file objects used.....
oStream.Close : Set oStream = Nothing
Business Accounts
Answer for Membership
by: Maverick_CoolPosted on 2008-02-08 at 06:57:23ID: 20850706
i had already answered a similar type in experts. first thing tell is this link a direct link i mean in html u have the url path or not.