Android 使用改型404在Azure BLOB中上载BLOB

Android 使用改型404在Azure BLOB中上载BLOB,android,file-upload,retrofit,retrofit2,blob,Android,File Upload,Retrofit,Retrofit2,Blob,那里 我一直在尝试使用改型在windows blob中的生成链接中上载图像,但每次404指定的资源不存在时都会出现相同的错误。 <Error> <Code>ResourceNotFound</Code> <Message>The specified resource does not exist. RequestId:1714618c-301e-0055-40cf-aaf06d000000 Time:2020-10-25T13:05:57.6466

那里 我一直在尝试使用改型在windows blob中的生成链接中上载图像,但每次
404指定的资源不存在时都会出现相同的错误。

<Error>
<Code>ResourceNotFound</Code>
<Message>The specified resource does not exist. RequestId:1714618c-301e-0055-40cf-aaf06d000000 Time:2020-10-25T13:05:57.6466955Z</Message>
</Error>
我正在使用
PUT
方法上传

Content-Type: application/octet-stream
content-length: 99518 
x-ms-blob-type: BlockBlob
x-ms-blob-content-type: image/jpeg
Content-Disposition: attachment;filename="IMG-20201022-WA0014.jpg"
MyInterface类

@PUT("{path}")
    suspend fun uploadImage(@Path("path") path: String,
                                 @Header("content-length") contentLength: String,
                                 @Header("x-ms-blob-type") type: String,
                                 @Header("x-ms-blob-content-type") contentType: String,
                                 @Header("Content-Disposition") contentDisposition: String,
                                 @Body photo : RequestBody) :  Response<ResponseBody>

@PUT(“{path}”)
挂起乐趣上载映像(@Path(“Path”)路径:字符串,
@标题(“内容长度”)contentLength:String,
@标题(“x-ms-blob-type”)类型:字符串,
@标题(“x-ms-blob-content-type”)contentType:String,
@标题(“内容处置”)contentDisposition:String,
@正文照片:RequestBody):响应
我还尝试了
Multipart.part
而不是
Body
,但得到了相同的响应
Url
每次都会生成,我该怎么办