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 2012/06/15 09:17:42 UTC

[jira] [Commented] (CAMEL-5367) DefaultJettyHttpBinding should not convert binary HTTP body

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

Claus Ibsen commented on CAMEL-5367:
------------------------------------

Can you try with latest Camel releases as we say on the support page
http://camel.apache.org/support

Also what are the exact HTTP header / body you send to the Camel jetty endpoint? The HTTP headers need to indiciate its binary data.
                
> DefaultJettyHttpBinding should not convert binary HTTP body
> -----------------------------------------------------------
>
>                 Key: CAMEL-5367
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5367
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.6.0
>            Reporter: metatech
>
> In class DefaultJettyHttpBinding, method "extractResponseBody", any non-Java HTTP body is considered as string.
> This corrupts binary files such as images when camel-jetty is used as a proxy http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html
> Only bodies with MIME types of non-binary data should be converted to strings.
> Method "doWriteDirectResponse" of class "DefaultHttpBinding" (in camel-http) converts it again, which corrupts it even more.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira