Azure Logic应用-获取Blob内容-设置内容类型 [英] Azure Logic Apps - Get Blob Content - Setting Content type
问题描述
Azure Logic Apps操作获取Blob内容"不允许我们设置返回内容类型.
The Azure Logic Apps action "Get Blob Content" doesn't allow us to set the return content-type.
默认情况下,它将blob作为二进制(八位字节流)返回,这在大多数情况下是没有用的.通常,拥有文本(例如json,xml,csv等)会很有用.
By default, it returns the blob as binary (octet-stream), which is useless in most cases. In general it would be useful to have text (e.g. json, xml, csv, etc.).
我知道该操作处于beta状态.这是短期路线图吗?
I know the action is in beta. Is that on the short term roadmap?
推荐答案
在对Logic Apps进行了很多摆弄之后,我终于了解了发生了什么.
After fiddling much with Logic Apps, I finally understood what was going on.
HTTP请求的JSON输出是XML有效负载的JSON表示形式:
The JSON output from the HTTP request is the JSON representation of an XML payload:
{
"$content-type": "application/xml",
"$content": "77u/PD94bWwgdm..."
}
因此我们可以对其进行解码,但是实际上它是没有用的.这是Logic App的XML对象.我们可以对其应用xml函数,例如xpath.
So we can decode it, but it is useless really. That is an XML object for Logic App. We can apply xml functions to it, such as xpath.
这篇关于Azure Logic应用-获取Blob内容-设置内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!