使用JSP捕获屏幕截图并返回图像文件 [英] Capture Screen Shot and Return an Image file Using JSP

查看:193
本文介绍了使用JSP捕获屏幕截图并返回图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个使用JSP技术构建的应用程序.我想捕获屏幕并返回服务器上的图像文件.基本上我想在基于Web的应用程序中捕获屏幕.

谢谢

Hi,

I have an application build in JSP technology. I want to Capture the screen and return an image file on the server. Basically i want to capture the screen in web based application.

Thanks

推荐答案

当记住客户端上的页面是服务器最初产生的结果时,这是一个有点奇怪的想法.

抛开这些,您可以遍历整个页面(文档),并将所有元素(包括属性值)放入一个巨大的字符串值中,然后将其发送回服务器.您将能够在浏览器组件服务器端重新创建网页的当前状态.除了浏览器兼容性之外,这还可以让您了解客户端当时正在查看的内容.

祝你好运!
That is a somewhat strange idea when keeping in mind that the page on the client is the result of what the server produced in the first place.

Putting that aside you could traverse the complete page (document) and put all elements (including the attribute values) into one giant string value and send it back to the server. You would be able to recreate the current state of the webpage in a browser component server side. Browser compatibility aside this would give you a representation of what the client is viewing at that moment.

Good luck!


这篇关于使用JSP捕获屏幕截图并返回图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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