wso2 - 在 wso2 ESB 中如何发送图像
问题描述
在 wso2 ESB 中,我想使用 multipart/form-data 发送图像文件,但该数据必须存储在 ESB 中。如果该条件满足此数据(multipart/form-data 中的图像)必须发送到端点,我将在 ESB 中使用该条件。
流程是这样的,
call ESB(with image file)-->store image in ESB--> check condition-->if it meets condition--> send the image file or data that is stored to the endpoint.
请帮助我如何实现这一点,因为当我尝试 multipart/form-data 时似乎在 WSO2 ESB 中无法正常工作,因为内容类型会跳过标题中的边界信息。
请帮助我实现这种集成模式,如果可能,请添加一个示例。
解决方案
我没有足够的声望给你的帖子添加评论,所以这里有一篇文章可以帮助你获得一个例子和细节来实现你的目标。
这是一篇 3 部分的文章。祝你好运!
推荐阅读
- php - PHP 中的 JSON 到 .CSV
- laravel - Laravel 8 添加下载的字体并使用它们
- python - Material Design + Flask-wtf 表单值为 None 因为 mwc-textfield 有名称
- crystal-lang - 如何用水晶语言逐行读取文件?
- javascript - 数组中对象值的计数
- javascript - 是否可以在一次调用中访问多个产品变体信息?Shopify API 节点
- java - 从数据库中删除数据
- python - Python - 迭代生成器表达式会影响迭代另一个生成器表达式的顺序吗?
- logic - 在 4 位 CLA 与 4 位 RCA 中,溢出信号包含多少个门?
- azure-ad-b2c - Azure ADB2C:如何返回用户旅程中的编排步骤