从客户端计算机上选择ImagesFiles以显示在网站上 [英] Pick ImagesFiles from client machine to show on Web Site

查看:63
本文介绍了从客户端计算机上选择ImagesFiles以显示在网站上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在我的网站中开发一个功能,该功能将在从客户端计算机上选择的网页上显示图像.

Hi All,

I want to develop a functionality in my web site, that will show images on the web page picked from client machine. Is there any way to do it using C#, asp .net?

推荐答案

不是,不是.如果您插入一个指向本地路径的img标签,它将显示出来,但是没有跨浏览器的方法可以可靠地从用户那里获取路径,除非您平白地要求他们提供他们的文件路径.无论如何,我看不出这有什么用.为什么我要网站记住我本地系统上的图像,并显示给我?
Not really, no. If you insert an img tag that points to the local path, it will show, but there''s no cross browser way to reliably get the path from the user, unless you flat out ask them to give you their file paths. I don''t see of what use this is, anyhow. Why would I want a website to remember where images are on my local system, and show them to me ?


实际上我想在该站点上提供扫描功能,并且将Scanner连接到客户端计算机所以扫描后,我需要在页面上显示这些图像
Actually i want to give scan feature on the site and Scanner is attached to client machine so after scanning i need to show those images on the page


请不要发布真正属于您原始帖子的答案".

好吧,连接扫描仪又是另一回事了. ASP.NET无法做到这一点.如果扫描仪是TWAIN兼容的,并且用户允许它运行,则OCX控件可能能够运行.
Please don''t post an ''answer'' that really belongs as an edit to your original post.

Well, attaching a scanner is something else again. ASP.NET cannot do that. An OCX control MIGHT be able to, if the scanner is TWAIN compliant, and if the user allows it to run.


这篇关于从客户端计算机上选择ImagesFiles以显示在网站上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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