Hi

Ah you may need to set a file representation that restlet supports,
see inside this source code for inspiration
https://github.com/apache/camel/blob/master/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java

On Wed, May 21, 2014 at 1:47 PM, Mark.Nelson <[email protected]> wrote:
> Thank you for your response, I tried to use zip-dataformat but I am getting
> the same issue, the generate file cannot be extracted or opened and it
> mentioned that it's a damaged file:
> The route that I used is:
>
>          from("restlet:/test")
>              .setHeader("Content-type",constant("application/zip") )
>              .setHeader("Pragma",constant( "public"))
>              .setHeader("Content-Disposition",constant( "attachment;
> filename=test.zip"))
>              .setBody(constant("file Content"))
>              .marshal()
>              .zip();
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-restlet-zipped-response-tp5751420p5751423.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/

Reply via email to