分片上传报参数错误 {"errcode":47003,"errmsg":"argument invalid! rid: 655b0911-7b4fb4e6-2b87de17"}
HttpPost httpPost = new HttpPost(url);
httpPost.setHeader("Content-Type", "multipart/form-data; boundary=" + boundary);
MultipartEntityBuilder entityBuilder = MultipartEntityBuilder
.create()
//.setBoundary(boundary) 与 httpPost.setHeader 等效
.setMode(HttpMultipartMode.RFC6532)
.addTextBody("upload_id", vodUploadPartBean.getUploadId())
.addTextBody("part_number", String.valueOf(vodUploadPartBean.getPartNumber()))
.addTextBody("resource_type", String.valueOf(vodUploadPartBean.getResourceType()))
.addBinaryBody("data", vodUploadPartBean.getData(),ContentType.APPLICATION_OCTET_STREAM,vodUploadPartBean.getFileName());
httpPost.setEntity(entityBuilder.build());