Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7842

Avoid using InputStreamEntity for byte[] input

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      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!

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              graben Benjamin Graf
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: