You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sarath Kumar Navarajan (JIRA)" <ji...@apache.org> on 2017/02/17 09:22:41 UTC

[jira] [Commented] (CAMEL-10852) Setting content-type in Header of camel and cxfrs

    [ https://issues.apache.org/jira/browse/CAMEL-10852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15871509#comment-15871509 ] 

Sarath Kumar Navarajan commented on CAMEL-10852:
------------------------------------------------

Am using Camel 2.16.1, 

> Setting content-type in Header of camel and cxfrs
> -------------------------------------------------
>
>                 Key: CAMEL-10852
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10852
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Sarath Kumar Navarajan
>
> i have a front end UI which calls a rest service in camel, i have a request in which am trying to explicitly set the content type as image/jpeg in the Camel exchange.getOut().setHeader("Content-Type","image/jpeg");
> and setting the byte array in exchange.getOut().setBody(byte[]), this should actually get the file to be previewed in the browser but JAXRSOutInterceptor changes the content type to text/html thereby displaying the byte[] as string on the browser. kindly guide me through if am wrong somewhere or if i have missed out anything to be added.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)