camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alex <alex.koe...@gmx.de>
Subject Zipping multiple files to one Zip-File
Date Fri, 20 Dec 2013 15:39:30 GMT
Dear Community, 

I'm new to Camel (2.12.0) and like it very much. I'm trying to build a zip
route which handles a lot of PDF-Files and zip them all together to one
Zip-File. No success so far :-(

        from("direct:zip")
        	.from("file:c:/temp/camel/batch/result?move=.moved&include=.*pdf")
        	.marshal().zipFile()
        	.to("file:c:/temp/camel/batch/result/zip?fileName=${file:name}");

at the end, i'm getting one zip for every pdf file. 
Is my approach completely wrong?
Best regards
Alex (from Germany)



--
View this message in context: http://camel.465427.n5.nabble.com/Zipping-multiple-files-to-one-Zip-File-tp5745128.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message