I'm trying to put block blob list to azure storage, but I'm getting "XML specified is not syntactically valid" error. I'm using REST API in java.
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>
I'm sending it using HttpRequest.put(url).send(...)
Any ideas what could be a problem here?
Update: There are no errors when putting block list without any block:
<?xml version="1.0" encoding="utf-8"?>
<BlockList>
</BlockList>
I was having the same problem implementing straight against the REST API without a library. The default API version (unless you specify an alternate) doesn't support this xml schema for multipart uploads. Switching to x-ms-version: 2011-08-18
fixed the problem for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.