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.