search

Home  >  Q&A  >  body text

java - 如何设计实现大文件上传功能?

需求如下:
想实现一个支持大文件上传的客户端,支持断点续传,功能类似优酷视频发布的那个客户端。开发语言暂定java,不知道有什么好的开源项目参考没?或者提供一些相关资料文献~

不胜感激~

PHP中文网PHP中文网2767 days ago546

reply all(4)I'll reply

  • 迷茫

    迷茫2017-04-17 11:38:06

    Ask and answer your own questions, and found a simpler project written by a Chinese: http://www.twinkling.cn/, which is quite instructive~

    Another good article is recommended: XMLHttpRequest implements breakpoint resume upload of files under HTTP protocol

    This is another open source project: Resumable.js, both require http and rely on html5.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 11:38:06

    No need to write a client, there are ready-made codes, HTML5 to Java

    https://code.google.com/p/java-large-file-uploader/

    reply
    0
  • PHPz

    PHPz2017-04-17 11:38:06

    It is recommended to use the http protocol. The protocol itself supports data upload and download in slices, so your client only needs to do some bookkeeping work and record the upload length of the file.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:38:06

    On the client side, you can refer to https://github.com/blueimp/jQuery-File-Upload/. The HTML5 used is first fragmented on the browser side, and then the segmented marking and merging processing is completed on the server side.

    reply
    0
  • Cancelreply