Skip to main content

#DataWeave 1토론 중인 항목 0개

how to convert .csv file to .zip file in Mule4. Is there any custom connectors ? Can someone let me know if there are better solution.

 

Note: java code is not preferred.

 

#DataWeave 2​ #Mule 4​ #DataWeave 1​ 

답변 8개
  1. 2020년 2월 11일 오후 7:08

    if multiple files, I will make use of Archive operation instead of Compress. For entries, you can follow below

     

    {(payload.data map(value, index) -> {

    (value.fileName) : value.payload write "application/csv"

    }

    )}

     

    where you want to write set of entries. Above command will result to

    {

    "test1.csv" : [<content>],

    "test2.csv" : [<content>]

    }

0/9000