So I could just specify in.setHeader(Exchange.CONTENT_TYPE,
"application/vnd.apple.pkpass") and it won't get marshalled?

On 19 February 2016 at 00:45, Claus Ibsen <claus.ib...@gmail.com> wrote:

> Set a different content-type as binary is not json then.
>
> On Thu, Feb 18, 2016 at 9:45 PM, Matt Sicker <boa...@gmail.com> wrote:
> > Most of my routes return json, but I now have a new route that needs to
> > return binary data. This automatically gets marshalled into json due to
> > using the json binding mode. Is there a way to selectively disable this
> > feature?
> >
> > I was thinking of implementing a processor that handles the marshalling
> of
> > the response, but this won't handle the unmarshal of the request (which
> has
> > the class name specified in the swagger model).
> >
> > --
> > Matt Sicker <boa...@gmail.com>
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>



-- 
Matt Sicker <boa...@gmail.com>

Reply via email to