需求如下:
想实现一个支持大文件上传的客户端,支持断点续传,功能类似优酷视频发布的那个客户端。开发语言暂定java,不知道有什么好的开源项目参考没?或者提供一些相关资料文献~
不胜感激~
迷茫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.
怪我咯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/
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.
伊谢尔伦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.