Azure Logic Apps - Get Blob Content - Setting Content type

前端 未结 4 770
攒了一身酷
攒了一身酷 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条回答
  •  不思量自难忘°
    2020-12-21 04:16

    Workaround I found is to use the Logic App expression base64ToString.

    For instance, create an action of type "Compose" (Data Operations group) with the following code:

            "ComposeToString": {
                "inputs": "@base64ToString(body('Get_blob_content').$content)",
                "runAfter": {
                    "Get_blob_content": [
                        "Succeeded"
                    ]
                },
                "type": "Compose"
            }
    

    The output will be the text representation of the blob.

提交回复
热议问题