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.
8 Antworten
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>]
}