By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,978 Members | 1,389 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,978 IT Pros & Developers. It's quick & easy.

Force Image Download

P: n/a
How can I force an image download with IE using ASP.net??
Here is the catch: the image I want to force a write with
is located on another web server. I can only reference the
image with a URL.

If the image is on my machine, I use the
response.wrifefile method. After setting up my headers I
can force an image download. However, I can't get this to
work if I reference the image via a url.

Example: strPath = "http://www.site.com/image.jpg"

response.writefile(strpath) generates an error.

Is there another method that can write an image to the
browser using a URL reference?
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.