I've been planning on contributing the code and just hadn't bothered. Since
there's interest I'll go ahead and commit it.
--
View this message in context:
http://camel.465427.n5.nabble.com/Corrupt-pdf-from-classpath-tp5756921p5757109.html
Sent from the Camel - Users mai
I will try to contact Tracy and see if he's
> willing to donate his code.
>
> Regards,
> Scott
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Corrupt-pdf-from-classpath-tp5756921p5757048.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Claus,
Tracy Snell wrote the original code and it's his website that I provided the
link to in my earlier post. I will try to contact Tracy and see if he's
willing to donate his code.
Regards,
Scott
--
View this message in context:
http://camel.465427.n5.nabble.com/Corrup
tatic files and it detects the type of the file to set the HTTP
> Content-Type header correctly.
>
> Regards,
> Scott
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Corrupt-pdf-from-classpath-tp5756921p5757022.html
> Sent from t
won't work for PDFs.
The first code sample in the article gives everything needed to deliver
static files and it detects the type of the file to set the HTTP
Content-Type header correctly.
Regards,
Scott
--
View this message in context:
http://camel.465427.n5.nabble.com/Corrupt-pdf-fro
Hi
Yeah that was the case, I have logged a ticket to support this in the future
https://issues.apache.org/jira/browse/CAMEL-7859
On Wed, Sep 24, 2014 at 10:27 AM, Claus Ibsen wrote:
> Hi
>
> I think the language component reads the resource as text based. Not
> sure if there is some explicit Str
Hi
I think the language component reads the resource as text based. Not
sure if there is some explicit String.class conversion in there. Would
need to check the code.
On Wed, Sep 24, 2014 at 4:03 AM, Rebecca Kreuter
wrote:
> I am trying to return a pdf as a response to a GET request.
> For the
Can you post the whole camel route?
Maybe you need to setup the content-type header to avoid camel do the encoding
work for you.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo
I am trying to return a pdf as a response to a GET request.
For the time being I would like to return a pdf from a file on the classpath.
I tried using as indicated
by [0].
The file is coming through but it's been corrupted.
I tried convertBodyTo byte[] but I haven't gotten it to work.
Any thought