Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019-11-20:假如让你实现断点上传功能,你认为应该怎样去做? #192

Open
Moosphan opened this issue Nov 20, 2019 · 6 comments

Comments

@Moosphan
Copy link
Owner

No description provided.

@Moosphan Moosphan changed the title 2019-11-20:假如让你实现断点上传功能,你认为应该怎么去做? 2019-11-20:假如让你实现断点上传功能,你认为应该怎样去做? Nov 20, 2019
@DaveBoy
Copy link

DaveBoy commented Nov 20, 2019

我记得前两天有个人在鸿洋的星球上问类似的问题。
断点上传:主要处理还是在服务器吧
不太确定你是不是想问断点下载。

@zhaoerlei1989
Copy link

这个需要配合说起鸿洋,其实他在慕课网讲过一个这个断点下载,断点上传在app端数据的有记录,其实断点下载是服务,断点上传我认为app这边的做,一些记录

@0xddy
Copy link

0xddy commented Nov 20, 2019

分2种情况:
分块上传:多线程读取本地文件指定区域流上传,header带有上传位置标记,服务器接收到多个上传请求会生成多个上传临时文件接收,最后合并成完整文件。(续传如下)
正常续传:本地请求上传,服务器响应是否未完成的临时文件和文件byte,本地收到就接着指定位置读流上传。

其中会涉及块的数据校验等

@nealkafuly
Copy link

FTP协议

@BanGyJ
Copy link

BanGyJ commented Aug 19, 2020

RandomAccessFile/Filechannel

@senlinxuefeng
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants