将二进制数据从JSON属性复制到Blob [英] Copy binary data from a JSON property to a Blob

查看:192
本文介绍了将二进制数据从JSON属性复制到Blob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个HTTP服务,该服务返回一个包含文件内容数组的对象,如下所示:

I have a HTTP service which returns an object containing an array of file content like this:

我想将其复制到一个Blob存储帐户,其中有效负载数组中的每个项目都有一个单独的blob,并且blob的内容取自content属性(一个base64编码的字符串)和blob名称来自fileName属性.

And I want to copy it to a Blob storage account where there is a separate blob for each item in the payloads array, and the content of the blob is taken from the content property (a base64 encoded string), and the blob name is taken from the fileName property.

在单个复制"活动中可以实现吗?还是我必须转换为中间格式?

Is this achievable in a single Copy activity? Or do I have to transform to an intermediate format?

任何帮助表示赞赏.



推荐答案

我认为这不能在单个复制活动中完成.我建议您先进行一个查找活动,然后为每个活动进行一个查找,以实现相同的目的.

I don't think this can be done in a single copy activity. I would suggest you to have a lookup activity first and then a for each activity to achieve the same.

要了解有关查找"和活动"的更多信息,请参阅以下文档:

To learn more about Lookup and For each activities, please refer the following documents :

https://docs.microsoft.com/zh-cn/azure/data-factory/control-flow-lookup-activity

https://docs.microsoft.com/en-us/azure/data-factory/control-flow-lookup-activity

https://docs.microsoft.com/zh-CN/azure/data-factory/control-flow-for-each-activity

https://docs.microsoft.com/en-us/azure/data-factory/control-flow-for-each-activity

让我们知道是否有帮助,否则我们可以继续进行对话.

Let us know if this helps, else we can gladly continue the dialogue.


这篇关于将二进制数据从JSON属性复制到Blob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆