Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 从存储Blob连接器输出的二进制文件在传递到以下操作时将采用什么格式?_Azure_Azure Web App Service_Azure Logic Apps - Fatal编程技术网

Azure 从存储Blob连接器输出的二进制文件在传递到以下操作时将采用什么格式?

Azure 从存储Blob连接器输出的二进制文件在传递到以下操作时将采用什么格式?,azure,azure-web-app-service,azure-logic-apps,Azure,Azure Web App Service,Azure Logic Apps,在Azure应用程序服务逻辑应用程序中,我有一个AzureStorageBlobConnector,用于从存储中检索文件。正在以二进制形式检索文件,并且未设置任何ContentTransferncode。我的连接器定义(订阅详细信息替换为“x”)如下所示: "azurestorageblobconnector": { "type": "ApiApp", "inputs": { "apiVersion": "2015-

在Azure应用程序服务逻辑应用程序中,我有一个AzureStorageBlobConnector,用于从存储中检索文件。正在以二进制形式检索文件,并且未设置任何ContentTransferncode。我的连接器定义(订阅详细信息替换为“x”)如下所示:

"azurestorageblobconnector": {
            "type": "ApiApp",
            "inputs": {
                "apiVersion": "2015-01-14",
                "host": {
                    "id": "/subscriptions/x/providers/Microsoft.AppService/apiapps/azurestorageblobconnector",
                    "gateway": "https://x.azurewebsites.net"
                },
                "operation": "GetBlob",
                "parameters": {
                    "BlobPath": "@triggers().outputs.body.Properties['FilePath']",
                    "FileType": "Binary"
                },
                "authentication": {
                    "type": "Raw",
                    "scheme": "Zumo",
                    "parameter": "@parameters('/subscriptions/x/resourcegroups/x/providers/Microsoft.AppService/apiapps/azurestorageblobconnector/token')"
                }
            },
            "repeat": null,
            "conditions": []
        },
我想编写一个自定义Api连接器来接收此文件,对其进行一些更改,然后将其返回到工作流的下一步


当存储blob连接器将文件作为
@body('azurestorageblobconnector')传递到下一个连接器时,文件将采用什么形式。内容
?它是HttpPostedFile还是正文中的流或多部分内容,还是其他内容?

这取决于您如何配置连接器,如果选择“二进制”,则它将以Base64编码的字符串形式出现。 如果选择文本,则它将是“原始文本”

解决这个问题的一种方法是,在API应用程序中尝试转换.FromBase64String,如果转换成功,您将获得一个包含实际字节的字节数组。如果不成功,则可以假定这是文件的原始文本内容