gpt4 book ai didi

javascript - Azure PutBlock 最大块数

转载 作者:行者123 更新时间:2023-12-02 16:58:46 25 4
gpt4 key购买 nike

我有一些 Javascript,它使用 PutBlock 将文件分片上传到 azure 存储 blob,然后当所有 block 上传时,调用 PutBlockList 请求将其全部放在一起。这很有效,直到我有超过 22 个切片。有谁知道允许的最大块数?好像上限是22?

顺便说一句,我正在使用 Azure 存储模拟器。

最佳答案

以下是documented对于底层 Azure 存储 REST API:

The maximum number of blocks that may be committed is 50,000, and the maximum size of a blob that may be committed via the Put Block List operation is 200 GB. If you attempt to commit more than 50,000 blocks, the service returns status code 413 (Request Entity Too Large). The service also returns additional information about the error in the response, including the maximum number of blocks permitted.

您需要小心遵守规则,特别是 following :

For a given blob, all block IDs must be the same length. If a block is uploaded with a block ID of a different length than the block IDs for any existing uncommitted blocks, the service returns error response code 400 (Bad Request).

关于javascript - Azure PutBlock 最大块数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25946905/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com