Azure Logic Apps - Get Blob Content - Setting Content type

前端 未结 4 773
攒了一身酷
攒了一身酷 2020-12-21 04:00

The Azure Logic Apps action \"Get Blob Content\" doesn\'t allow us to set the return content-type.

By default, it returns the blob as binary (octet-stream), which is

4条回答
  •  猫巷女王i
    2020-12-21 04:21

    After fiddling much with Logic Apps, I finally understood what was going on.

    The JSON output from the HTTP request is the JSON representation of an XML payload:

    {
      "$content-type": "application/xml",
      "$content": "77u/PD94bWwgdm..."
    }
    

    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.

提交回复
热议问题