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.

Reply via email to