Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
Unknown
Description
Camel aws2-s3 mutlipart upload only supports Files.
There are at least two approaches to solving this:
The hard, general case and a simple specific case.
1) The harder but general case: use something like Spring's aws SimpleStorageInputStream:
and translate any exchange body to an Inputstream for mulitpart uploads.
2) The simpler but specific case: for remote files in particular, camel often makes use of a localwork directory to download files. In fact,
e.getIn().getBody(File.class)
will resolve the file in the local work directory when polling from an FTP site with a local work directory specified.
The aws2-s3 producer (AWS2S3Producer.class) on lines 134 to 145 would need to be modified in both cases.