camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artur <ajablon...@ravenpack.com>
Subject S3 MultiPart upload for InputStream
Date Wed, 29 Mar 2017 16:38:17 GMT
Hello, 

i am trying to use the AWS-S3 component to multipart upload to S3.

The content is coming via network and I was trying to pass an InputStream to
the component for uploading.

This fails with this message:

aws-s3: MultiPart upload requires a File input. (Service: null; Status Code:
0; Error Code: null; Request ID: null)]

I looked at the source code and it seems that when using the component
indeed only File can be passed to it. 
The question is.. why.

Imagine there's a very very very large file that your app can get over
network and you want to upload it to s3. It makes sense to do mlutipart not
to load the whole file in memory, so the component could read the bytes in
chunks and pass it to s3 multipart api. You don't have an option of storing
that file to disk first (which doesn't make sense in that case anyway).

Is this scenario not supported for any particular reason?

Thanks Artur



--
View this message in context: http://camel.465427.n5.nabble.com/S3-MultiPart-upload-for-InputStream-tp5796702.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message