我正在尝试将块 blob 列表放入 azure 存储,但出现“指定的 XML 在语法上无效”错误。我在java中使用REST API。
XML:
<?xml version="1.0" encoding="utf-8"?>
<BlockList>
<Latest>AA==</Latest>
<Latest>AQ==</Latest>
<Latest>Ag==</Latest>
<Latest>Aw==</Latest>
<Latest>BA==</Latest>
<Latest>BQ==</Latest>
<Latest>Bg==</Latest>
<Latest>Bw==</Latest>
<Latest>CA==</Latest>
<Latest>CQ==</Latest>
<Latest>Cg==</Latest>
<Latest>Cw==</Latest>
<Latest>DA==</Latest>
<Latest>DQ==</Latest>
<Latest>Dg==</Latest>
<Latest>Dw==</Latest>
<Latest>EA==</Latest>
<Latest>EQ==</Latest>
<Latest>Eg==</Latest>
<Latest>Ew==</Latest>
<Latest>FA==</Latest>
<Latest>FQ==</Latest>
<Latest>Fg==</Latest>
<Latest>Fw==</Latest>
<Latest>GA==</Latest>
<Latest>GQ==</Latest>
<Latest>Gg==</Latest>
</BlockList>
我正在使用HttpRequest.put(url).send(...)
有什么想法可能是这里的问题吗?
更新:放置没有任何块的块列表时没有错误:
<?xml version="1.0" encoding="utf-8"?>
<BlockList>
</BlockList>