You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2014/09/21 09:53:34 UTC

[jira] [Assigned] (CAMEL-7842) Avoid using InputStreamEntity for byte[] input

     [ https://issues.apache.org/jira/browse/CAMEL-7842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-7842:
-----------------------------------

    Assignee: Willem Jiang

> Avoid using InputStreamEntity for byte[] input
> ----------------------------------------------
>
>                 Key: CAMEL-7842
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7842
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http4
>    Affects Versions: 2.14.0
>            Reporter: Benjamin Graf
>            Assignee: Willem Jiang
>
> Sending byte[] input via http in some circumstances causes ugly NonRepeatableEntityException because of the internal usage of InputStreamEntity in the HttpEntityConverter which is not repeatable. The usage of ByteArrayEntity seems more resonable for this input.
> A workaround is to explicitly convertbodyto string but this is taken with care because of encoding when creating string and StringEntity later on!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)