Hi Ah there is 2 kind of zip
- zipfile = for files - zip = for NOT files, eg just a stream of zipped data So try out this instead http://camel.apache.org/zip-dataformat.html On Wed, May 21, 2014 at 12:09 PM, Mark.Nelson <[email protected]> wrote: > Hello, > > I want to create a restlet service that compress the response and sent it to > the requester. > > I tried to do this using camel, but the downloaded file is damaged. > > > <bean id="zipFileDataFormat" > class="org.apache.camel.dataformat.zipfile.ZipFileDataFormat"> > <property name="usingIterator" value="true" /> > </bean> > <camelContext xmlns="http://camel.apache.org/schema/spring"> > > <route> > <from uri="restlet:/v1/test" /> > <setBody> > <constant>test</constant> > </setBody> > <marshal ref="zipFileDataFormat" /> > </route> > </camelContext> > > Is there any options that can help me to do that successfully? > > Regards, > Marc > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-restlet-zipped-response-tp5751420.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
