我正在使用Logic将excel文件从Outlook收件箱保存到Blob存储中。这是我正在使用的代码。

"HTTP": {
"inputs": {
"authentication": {
"audience": "https://storage.azure.com",
"type": "ManagedServiceIdentity"
},
"body": "@items('For_each')?['ContentBytes']",
"headers": {
"x-ms-blob-type": "BlockBlob",
"x-ms-version": "2019-07-07"
},
"method": "PUT",
"uri": "blob storage path"
},
"type": "Http"
}我的问题是,该文件被保存为内容类型“application/octet”,而不是"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet".。有什么方法可以改变内容类型吗?
发布于 2022-04-20 03:14:47
如果您使用的是HTTP端点,那么您应该能够按照文档在头中指定内容类型。
https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob

如果这不起作用,请尝试另一个列出的,它看起来确实是正确的使用. x-ms-blob-content-type

发布于 2022-04-20 03:16:18
根据您的要求,您可以使用Create blob (V2)直接将outlook的excel文件附件保存到blob存储中。

https://stackoverflow.com/questions/71933536
复制相似问题