WSO2 ESB - writing files out of base64

前端 未结 2 935
一个人的身影
一个人的身影 2021-01-24 10:09

I have a proxy which accepts XML files with Base64 encoded files in it. For example the XML looks like:


  Hello World         


        
2条回答
  •  故里飘歌
    2021-01-24 10:47

    You have several options,

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

      
      
      
          
              
    2. If the files are large then it's more efficient to write your own class mediator

提交回复
热议问题