android手机上传多张图片很慢
黄舟
黄舟 2017-04-18 09:13:33
0
2
708

手机上传多张图片到七牛云时间很长

uploadManager.put(data, key, token,new UpCompletionHandler() {}
我用的这个方法上传的,一次就上传一张,for循环多次调用,结果耗时很久

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
洪涛

If you think the upload is slow, you can refer to multi-threaded download and then write a multi-threaded upload.

黄舟

If it takes a long time, it is recommended to give the time and the file size.
Based on primary school mathematics (I am good at primary school mathematics)

uploadTime = Size / speed //上传时间 = 文件大小 / 上传速度

So what needs to be optimized: Find a faster network or reduce the image size
Of course, this is when uploading one image at a time (serial), so another optimization speed is to upload multiple images at once

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template