Benjamin Graf created CAMEL-7842:
------------------------------------

             Summary: 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


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)

Reply via email to