我如何访问本地文件系统的资源并从浏览器中操作它们 [英] How I can access resources of local filesystem and manipulate them from browser

查看:698
本文介绍了我如何访问本地文件系统的资源并从浏览器中操作它们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一项技术:

a)从浏览器,网页浏览到用户文件系统(与他的授权)

b)让用户选择一个文件夹并搜索图片

c)该文件夹可以包含巨大的jpg图像(最多20Mb)
b $ bd)显示已调整大小的版本,非常小的版本,已创建的图片在浏览器中

e)使用缩略图(重新排序,重命名)关联一些选项),与网页交互

f)让用户选择完成上传哪个图像
g)上传所有巨大的原始文件大小

a) From the a browser, a web page, browse to the user filesystem (with his authorization)
b) Let user select a folder and search for images
c) The folder can contain huge jpg images (up to 20Mb)
d) show a resized version, very tiny version, of the founded images inside the browser
e) play with the thumbnail (reorder, rename, associate some options), interacting with the web pages
f) let the user select which image will be uploaded g) when finished upload all the huge original file size

我无法使用外部客户端。

插件没问题。

I cannot use external client.
No problem for plugins.

是否有技术可以做到这一点?

Is there a technology out there capable to do this ?

我决定尝试在Java中实现所有本地代码(文件夹和图像选择,缩略图创建)并通过缩略图到服务器。使用Ajax应用程序将缩略图传递到applet所在的网页,并让用户与缩略图进行交互。最后,尝试回忆一下上传原始文件的小程序。

I've decided to try to implement in Java all the "local code" (the folder and image selection, thumbnail creation) and pass thumbnail to the server. With an Ajax application pass the thumbnail to the web page where the applet reside and let the user interact with the thumbnail. At the end try to recall the applet to upload the original files.

在您的观点中,这种方法是否有技术替代方案?

Are there technological alternatives to this approach in your point of view ?

推荐答案

由于您已经掌握了Java技术,如果您很高兴要求最终用户拥有Java I' d使用已签名的Java小程序。您可以使用 Java Advanced Imaging(JAI)进行图像处理。

Since you're already up on Java technologies, if you're happy to require that the end user have Java I'd go with a signed Java applet. You can use Java Advanced Imaging (JAI) for the image manipulation.

这篇关于我如何访问本地文件系统的资源并从浏览器中操作它们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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