camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sarath Kumar Navarajan (JIRA)" <>
Subject [jira] [Created] (CAMEL-10852) Setting content-type in Header of camel and cxfrs
Date Fri, 17 Feb 2017 05:30:41 GMT
Sarath Kumar Navarajan created CAMEL-10852:

             Summary: Setting content-type in Header of camel and cxfrs
                 Key: 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

View raw message