Hi, It looks like there are some short coming of the Zip data format which doesn't support to combine the files together. BTW, I'm still interesting about the agggregatorStrategy that you use. Can you show me the code ?
Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang On Feb 15, 2012, at 3:30 PM, Lars wrote: > Hi, > > I have deleted much of the "crap" and converted to file endpoint ( see > below). However the produced zip-file is still unreadable. However, if I > convert to gzip marshalling the file is readable. What is wrong with the zip > marshalling? > > > <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> > <route streamCache="true"> > <from uri="{{file.inbox}}" /> > <aggregate strategyRef="aggregatorStrategy" > completionTimeout="5000" completionSize="5"> > <correlationExpression> > <constant>true</constant> > </correlationExpression> > <marshal> > <zip></zip> > </marshal> > <setHeader headerName="CamelFileName"> > <simple>${file:name}.zip</simple> > </setHeader> > <to uri="{{file.outbox}}" /> > </aggregate> > </route> > </camelContext> > > Best regards > > Lars Stuevold > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Zipping-the-content-of-several-files-into-one-file-tp5481638p5485128.html > Sent from the Camel - Users mailing list archive at Nabble.com.
