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: 姜宁willem On September 24, 2014 at 10:04:21 AM, Rebecca Kreuter (alilyamongtho...@gmail.com) wrote: > 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 > uri="language:constant:resource:classpath:sample.pdf" /> 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 thoughts? > Thank you. > > [0] http://stackoverflow.com/a/16811930/1623533 > > Before: > %PDF-1.5 > %âãÏÓ > > After: > %PDF-1.5 > %���� >