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 2022/01/11 08:47:00 UTC

[jira] [Commented] (CAMEL-17470) camel-ahc - Binary file upload fails to the target system

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

Claus Ibsen commented on CAMEL-17470:
-------------------------------------

It is not a bug to send data in chunks, especially binary / large data.

You can convert the data to byte[] by camel before sending (such as using convertBodyTo(byte[].class) which would then know the content length in advance so camel-ahc would use this information.


> 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: Major
>
> 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)