列出blob时空体,200响应 [英] Empty body, 200 response when listing blobs
问题描述
大家好
希望有人在此之前遇到此问题:运行时https://github.com/Azure-Samples / storage-blob-java-getting-started针对我的存储服务,我能够创建,编辑和删除blob,但不能列出容器中的blob;我收到异常
说响应正文格式不正确,但响应代码是200 OK。重新解决问题应该很简单,只需运行Quickstart脚本即可:
我能够通过GET请求成功完成操作邮递员,收到一些XML:
https:// [SERV] .blob.core.windows.net / testcontainer?restype = container& maxresults = 10& include =& comp =列表&安培; SV = 2018年3月28日&安培; SS = bfqt&安培; SRT = SCO&安培; SP = rwdlacup&安培; SE = 2019-02-26T17:14:28Z&安培; ST = 2019-02-26T09:14:28Z&安培; SPR = HTTPS&安培; sig = [SIG]
有一个如何列出容器中所有blob的示例
列出容器中的blob。
列出Blob 操作枚举指定容器下的blob列表。
附加信息:
以下是 显示如何使用的简历代码示例 < a href ="file:/// C:/ Users / sumarigo / Desktop / The%20following%20are%20Jave%20code%20examples%20for%20showing%20how%20to%20use%20listBlobs()"> listBlobs()
如果上述情况有所帮助或者您需要在这个问题上需要进一步的帮助,请告诉我们。
------------------------------------- -------------------------------------------------- ---
点击帮助您的帖子上的"标记为答案",这对其他社区成员有益。
Hi everyone
Hoping someone's faced this before: when running https://github.com/Azure-Samples/storage-blob-java-getting-started against my storage service, I'm able to create, edit and delete blobs, but not to list the blobs in a container; I'm getting an exception saying the response body is malformed, though the response code is 200 OK. Reproing the issue should be straightforward, just running the Quickstart script should suffice:
I am able to successfully do the operation using a GET request via postman, receiving some XML:
https://[SERV].blob.core.windows.net/testcontainer?restype=container&maxresults=10&include=&comp=list&sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-02-26T17:14:28Z&st=2019-02-26T09:14:28Z&spr=https&sig=[SIG]
There is a sample of how to list all of the blobs in a container at List the blobs in the container.
The List Blobs operation enumerates the list of blobs under the specified container.
Additional information: The following are Jave code examples for showing how to use listBlobs()
Azure Blob Service - List all Containers in a Storage Account
Kindly let us know if the above helps or you need further assistance on this issue.
------------------------------------------------------------------------------------------
Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.
这篇关于列出blob时空体,200响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!