[
https://issues.apache.org/jira/browse/CAMEL-17470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477127#comment-17477127
]
Claus Ibsen commented on CAMEL-17470:
-------------------------------------
You can add the content length header yourself, eg convert to byte[] to know
the lenght of this array, and then set the header
> camel-ahc - Binary file upload fails to the target system
> ---------------------------------------------------------
>
> Key: CAMEL-17470
> URL: https://issues.apache.org/jira/browse/CAMEL-17470
> Project: Camel
> Issue Type: Improvement
> Components: camel-ahc
> Reporter: Deepak
> Priority: Minor
> Attachments: CamelTest.zip
>
>
> Binary file upload fails to the target system because the target system
> doesn't understand Transfer-Encoding: chunked header which is sent by default
> by netty is bundled by camel-ahc.
> The target system expects the Content-Length header but there is no way to
> disable camel-ahc from sending data in chunks for binary content.
> I think this is a big issue. at least there should be a property to enable or
> disable camel-ahc from sending chunked data to the target.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)