从 ASP.Net 页面获取屏幕截图
我有一个 ASP.Net 页面,其中有一个按钮,单击该按钮时我想截取用户 PC 的屏幕截图并将其发送到服务器。
我可以编写某种侦听器程序在服务器上运行以接受接收这些图像的请求。 我有点模糊的是让用户的电脑发送屏幕截图的最佳方式。 这是否需要通过为 ASP.Net 页面编写某种 Active X 控件来完成? 如果可能的话,它需要跨浏览器和操作系统。
只要指出正确的方向以及我应该使用哪些技术就太好了。 如果可能的话,我宁愿自己编写此功能,也不愿使用开箱即用的解决方案,因为我可以看到此功能将来可能会扩展。 像 WebEx 或 copilot 这样的东西如何管理这个?
谢谢
加文
编辑:只是为了澄清我并不是试图从用户的电脑上窃取信息,他们必须允许此功能,更多的是从支持的角度来看,因此当客户遇到问题时,他们可以发送屏幕截图他们所在的页面。
I have an ASP.Net page that has a button that when clicked I would like to take a screenshot of the user's PC and send it to a server.
I'm ok with writing some sort of listener program to run on the server to accept requests to receive these images. Where I'm a bit hazy is the best way to get the user's PC to send the screenshot. Would this need to be done by writing some sort of Active X control for the ASP.Net page? It needs to be cross browser and operating system if possible.
Just a point in the right direction and what technologies I should use would be great. I would rather write this functionality myself if possible than use an out of the box solution as I can see that this functionality may be extended in the future. How does something like WebEx or copilot manage this?
Thanks
Gavin
Edit : Just to make it clear I'm not trying to steal information from a users PC, They would have to allow this functionality, Its more from a support point of view so when a clients having issues they can send a screenshot of the page they are on.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果它需要跨浏览器等等,你应该看看Java(小程序)。 这听起来可能有些过时,但我认为这是你最好的选择。 ActiveX 仅适用于 windows/IE ;)
对于初学者,请看一下这个问题,它非常相似: 有没有办法使用 Java 截取屏幕截图并将其保存为某种图像?
If it needs to be cross-browser and all, you should take a look at Java(applets). It may sound old fashion but I think it's your best option. ActiveX works on windows/IE only ;)
For starters, take a look at this question, which is quite similar: Is there a way to take a screenshot using Java and save it to some sort of image?
ActiveX 可以工作。 我怀疑您也可以在 Silverlight、Flash 或 Java applet 中执行某些操作(这对跨浏览器更友好)。
至于副驾驶,它在每个用户下载并运行的独立可执行文件中运行。 因此它不限于典型的浏览器限制。
ActiveX would work. I suspect you might be able to do something in Silverlight, Flash, or Java applet as well (which would be more cross-browser friendly).
As for copilot, it is running in a stand alone executable that the each user downloads and runs. So it's not confined to typical browser limitations.
这只是您想要快照的网页?
然后,您可以访问从 javascript 文档对象呈现的整个 html 页面,并将其与浏览器类型等一起发送到 Web 服务。无需安装 ActiveX :-)
It is just the web page you want a snap shot of?
Then you can access the entire pages rendered html from the javascript document object and send it to a web service along with browser type etc. No ActiveX install required :-)
我使用 WebsitesScreenshot 组件来捕获网站屏幕截图或缩略图。
这个.NET 组件非常易于使用。 我喜欢这个组件。
http://www.websitesscreenshot.com/
示例代码:
I use WebsitesScreenshot component to capture website screenshot or thumbnail image.
This .NET Component is very easy to use. I love this component.
http://www.websitesscreenshot.com/
Sample code: