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 2026/01/29 06:23:00 UTC
[jira] [Resolved] (CAMEL-22925) Enhance S3 producer to stream the payload of type GenericFile
[ https://issues.apache.org/jira/browse/CAMEL-22925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-22925.
---------------------------------
Resolution: Fixed
> Enhance S3 producer to stream the payload of type GenericFile
> -------------------------------------------------------------
>
> Key: CAMEL-22925
> URL: https://issues.apache.org/jira/browse/CAMEL-22925
> Project: Camel
> Issue Type: Improvement
> Components: camel-aws2-s3
> Affects Versions: 4.10.8
> Reporter: Bartosz Popiela
> Priority: Minor
> Fix For: 4.14.5, 4.18.0
>
>
> When moving a big file from SFTP to S3 in the streaming fashion we experience OutOfMemoryError. This is because {{org.apache.camel.component.aws2.s3.AWS2S3Producer#processSingleOp}} consumes a stream to determine the content length. However, for instances of {{org.apache.camel.component.file.remote.RemoteFile}} and in general {{{}org.apache.camel.component.file.GenericFile{}}}, the {{org.apache.camel.component.file.GenericFile#getFileLength}} method can be used for that purpose.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)