azure - 使用 base64 转换的 Azure 数据工厂动态内容
问题描述
我正在从 Azure 数据工厂进行 HTTP 触发的 Azure 函数调用。我无法使函数活动的 HTTP 主体对 HTTP POST 正确。这是 HTTP 正文
{ “文件名”:“@{item().BatchId}.json”,“文件内容”:@{base64(item().BatchId)} }
我传递了两件事:文件名和文件内容,在将其发送到函数之前需要对其进行 base64 编码。base64 函数不适用于 BatchId 的动态值,但文件名在上面的示例中工作正常。
解决方案
It was not working because the BatchId was not a string. Following line started working -
{ "filename": "@{item().BatchId}.json", containername:"insightsfiles", "filecontent": "@{base64(string(item().BatchId)) }"}
推荐阅读
- git - 我将一个提交合并到 master 中,现在收到一条关于挑选樱桃的消息。不胜感激建议什么是安全的
- jquery - jQuery替换方法不会用新值更新旧值
- java - Java SQL Prepared Statement 问题与数组和 Where... IN 列表
- spring - 如何获取名称存储在变量中的方法返回的值
- c++ - 如何在不改变平移方向的情况下在旋转后应用平移?
- python - 如何使用多级索引熊猫数据框中列的总和值作为新列中值的条件
- angular - 如何修复“在 DetachedRouteHandle 中找不到组件引用”
- django - 在 Django 中通过 Outlook 共享邮箱发送电子邮件
- c# - 为什么 Parallel 类在调用 .Break() 时不会停止?
- dialogflow-es - DialogFlow 会话实体和解析为我的数据库中的值