谷歌云存储下载的IOS / Android应用谷歌云、IOS、Android

2023-09-11 23:45:56 作者:假洒脱

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

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