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

感觉没用啊 你试下这个连接 没啥反应 #40

Closed
13787386507 opened this issue Nov 2, 2018 · 1 comment
Closed

感觉没用啊 你试下这个连接 没啥反应 #40

13787386507 opened this issue Nov 2, 2018 · 1 comment

Comments

@13787386507
Copy link

http://datamarketapi.apyfc.com/api/bos/downloadfile?objectName=201811021621458048561.ppt

@JessYanCoding
Copy link
Owner

JessYanCoding commented Nov 2, 2018

看了下,下载的时候有进度信息,但是进度一直为 0,日志信息为 currentBytes=10745468, contentLength=-1,断点进去看了,是服务器没有返回这个数据的总大小,在服务器没有返回数据总大小的情况下,框架只能获取到当前已经下载了多少数据,使用 总大小 / 除以当前已下载数据大小 = 已下载进度 这个公式,由于总大小未知,所以根本不可能能算出正确的进度,所以这个问题和框架无关,框架不可能在数据还未下载完成之前就知道这个数据的总大小,必须依赖服务器的返回,至于服务器的问题,自己想办法吧,框架无能为力

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

2 participants