使用Java小程序上传大文件

发布于 2024-07-15 02:14:47 字数 269 浏览 5 评论 0原文

我的任务是通过网络浏览器实现大型(2GB+)文件上传。 在评估了各种技术之后,java applet 似乎是前进的方向(只有一个能够提供对本地磁盘的正确访问)。 我想知道是否有人可以推荐一个我们可以用作基础的第三方文件上传应用程序? 要求是

  • 体面的用户界面,理想情况下我们想要类似于 facebook 照片上传器的东西
  • 可以处理大(2gb +)文件
  • 可恢复上传
  • 我们将其扩展为满足我们的需求的源(不介意支付额外费用)

I've been tasked with implementing large (2gb+) file uploads via a web browser. After evaluating various technologies, java applets seem to be the way forward (only one's which provide proper access to the local disk). I was wondering if anyone can recommend a 3rd party file upload app we can use as a base? requirements are

  • Decent UI, ideally we want something similar to facebooks photo uploader
  • Can handle large (2gb+) files
  • Resumable uploads
  • We beed the source to extend it to our needs (dont mind paying extra)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

南城旧梦 2024-07-22 02:14:48

并不是真正的解决方案:根据经验,您可能会遇到以下问题: 通过

  • HTTP 上传时出现问题
  • 通过代理上传时出现问题

只是想让您了解这两种情况,以便您在评估解决方案时进行测试。

Not really a solution : from experience you may bump into the following issues:

  • problems when uploading over HTTPs
  • problems uploading through proxies

Just wanted to make you aware of these two cases, for you to test when evaluating a solution.

逆光下的微笑 2024-07-22 02:14:48

希望您能在这里找到问题的解决方案。http://jupload.sourceforge.net/

Hope, you will get solutions for your prob over here.. http://jupload.sourceforge.net/

月棠 2024-07-22 02:14:47

您可能正在寻找 JUpload

更新:不确定它是否具有您希望的那样好的用户界面,但除非您想构建像我一样的自定义解决方案,否则它是您的最佳选择。

You're probably looking for JUpload.

Update: not sure if it has as nice of UI as you're hoping, but unless you want to build a custom solution like I have it's your best option.

各自安好 2024-07-22 02:14:47

只是一个提示,也许很明显,我不知道:P

以 2mb 之类的块发送大文件是很好的,并且在服务器端您只需将字节附加到目标文件。 服务器知道它需要哪些字节,如果上传被中止并稍后继续,服务器可以发送一条消息,告知从哪些字节开始再次上传文件。 然后我们得到了大型 HTTP 上传的可恢复性(是一个词吗?:P)和安全性(因为事实上,我们正在发送许多较小的上传,并且每个上传都在服务器上经过检查以确保大小正确)。

我们曾经写过一个这样的实现,用 Java 小程序作为客户端,PHP 在服务器上,我看看是否可以将其挖掘出来作为您的参考:p

Just a tip, maybe it is obvious, i don't know :P

It is nice to send the big file in chunks like 2mb, and on the server side you just append the bytes to the target file. The server knows what bytes it needs, and if a upload is aborted and continued later, the server can just send a message about from what bytes to start uploading the file again. Then we get resumability (is it a word? :P) and safety of large HTTP-uploads (since, in fact, we are sending many smuller uploads, and each upload is checked to be of the correct size on the server).

We wrote an implementation like this once with a Java-applet as the client and PHP on the server, I'll see if I can dig it out as a reference for you :p

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文