You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/02/23 12:38:44 UTC
[jira] [Resolved] (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:all-tabpanel ]
Claus Ibsen resolved CAMEL-10852.
---------------------------------
Resolution: Invalid
Please use the user forum or user mailing list first to get help
> 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)