从本地驱动器检索图像并在asp.net中显示 [英] retrieve images form local drive and display in asp.net
本文介绍了从本地驱动器检索图像并在asp.net中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个asp页面,我必须显示存储在本地磁盘C中的图像。我怎么能这样做...我无法这样做。
I have an asp page in which i have to display the image which is stored in my local disk C. how can i do that...i am not able to do so.
推荐答案
感谢上帝!
想象一下有人写了一个网页,每当你访问那个页面时它就会访问你的本地驱动器!!!
所有黑客都在等待!
您无法从网页访问浏览您网站的人的本地驱动器,并且出于明显的安全原因......
Thank God for that!
Imagine someone who wrote a web page and whenever you visiting that page it access your local drive!!!
All hackers are waiting for that!
You an not access from a web page the local drive of one who browsing your site, and that for obvious security reasons...
您需要设置您的计算机或带有IIS的服务器或拥有一个网络主机并将图像上传到网站。
图像应该被复制到一个特殊的文件夹或者你可以制作虚拟目录。
图像可以使用asp.net元素或HTML图像标记显示,并使用JavaScript进行动态更改。
You need to set up your computer or a server with IIS or have a web-host and upload the images to the site.
The images should be copied to a special folder or you can make a virtual directory.
The images can be presented using asp.net elements or as HTML image tag and use JavaScript to make dynamic changes.
这篇关于从本地驱动器检索图像并在asp.net中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文