WSO2 ESB - writing files out of base64

拥有回忆 提交于 2019-12-02 05:08:11

You have several options,

  1. If file sizes are small, iterate through <attachments> and for each attachment, decode using the script mediator and write to a file with syntax like,

    <property name="transport.vfs.ReplyFileName"
              expression="expression-to-compute-file-name"
              scope="transport"/>
    <property action="set" name="OUT_ONLY" value="true"/>
    <send>
        <endpoint>
            <address uri="vfs:file:///home/user/test/out"/>
        </endpoint>
    </send>
    
  2. If the files are large then it's more efficient to write your own class mediator

Send the files to an local filesystem . Use VFS proxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!