首页 > 解决方案 > 在 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 中无法正常工作,因为内容类型会跳过标题中的边界信息。

请帮助我实现这种集成模式,如果可能,请添加一个示例。

标签: wso2wso2esb

解决方案


我没有足够的声望给你的帖子添加评论,所以这里有一篇文章可以帮助你获得一个例子和细节来实现你的目标。

https://www.yenlo.com/blog/wso2torial-i-like-to-move-it-moving-files-with-wso2-esb-vfs-transport-part-1

这是一篇 3 部分的文章。祝你好运!


推荐阅读