Bartosz Popiela created CAMEL-22925:
---------------------------------------

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


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)

Reply via email to