如何在点击时下载/保存任何图像 [英] How to download/save any image on click

查看:81
本文介绍了如何在点击时下载/保存任何图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个应用程序,我要在该应用程序中单击该链接来下载图像.
这是链接.
下载高分辨率图像

但是,当我单击它时,它将在新窗口中显示图像,但是我想显示保存选项或下载选项.


如果有人找到了解决方案,请回复

在此先感谢


I am developing an application in which i want to download an image on click that link.
This is the link.
Download High Resolution Images

But when i click on this it shows the image in new window but i want to show save option or download option.


If anyone found the solution then pls reply

thanks in advance

推荐答案

请参阅此链接-
http://support.microsoft.com/kb/260519 [ http://www.haiders.net/post/Force-File-Download-with- ASPNET.aspx [ ^ ]
Refer this link -
http://support.microsoft.com/kb/260519[^]

or this link -
http://www.haiders.net/post/Force-File-Download-with-ASPNET.aspx[^]


看看这里 [ ^ ],说明了如何使用file_puts和curl进行操作.

另外,此链接 [
Take a look here[^], it explains how to do it using file_puts and curl.

Also this link[^] can help.

Good luck. :thumbsup:


以下是我正在寻找的链接.

点击例如

但是,如果任何人都可以用更少的编码来完成此任务,请回复.

谢谢
Here is the link what i am looking for.

click for example

But if anyone can do this in less coding then pls reply.

Thanks


这篇关于如何在点击时下载/保存任何图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆