Home > OS >  Appache camel Gzip compression
Appache camel Gzip compression

Time:12-21

I'm trying to compress my file with gzip (to have .zip extension) but after compression i lost the original extension of my file into the archieve

.setHeader(Exchange.FILE_NAME,simple("RANSXY_VALD.dat"))

.marshal().gzipDeflater().to(toCtuUri "&fileName=${file:name.noext}.zip")

CodePudding user response:

To get Zip compression, you have to use zipFile() instead of gzipDeflater()

  • Related