谷歌云存储下载的IOS / Android应用 [英] google cloud storage download for IOS/Android App

查看:133
本文介绍了谷歌云存储下载的IOS / Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来下载一个大文件的多个线程,并把所有曾经从谷歌云存储下载的。

Is there a way to download single big file as multiple thread and combine all once downloaded from google cloud storage.

推荐答案

是的。当下载从谷歌云存储的对象,你可以指定你想获取一个字节范围。标题:使用XML API,这将通过范围来处理。这是为恢复中断的下载是有用的,但它也可以被用来下载文件与多个线程。

Yes. When downloading objects from Google Cloud storage, you can specify a byte range that you would like to retrieve. Using the XML API, this would be handled via the "Range:" header. This is useful for resuming interrupted downloads, but it can also be used to download the file with multiple threads.

下面是关于如何格式化参数范围内的一些文档: https://开头开发商.google.com /存储/文档/参考标题#范围

Here's some documentation on how to format the range parameter: https://developers.google.com/storage/docs/reference-headers#range

这是为获取对象调用,包括Range头文件: https://developers.google.com/storage/docs/reference-methods#getobject

And here's the documentation for the get object call, including the Range header: https://developers.google.com/storage/docs/reference-methods#getobject

这篇关于谷歌云存储下载的IOS / Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆