With InputStreams, Amazon's Java libraries aren't able to generate the content length or content type, and we get warnings like this:
WARN AmazonS3Client - No content length specified for stream data. Stream contents will be buffered in memory and could result in out of memory errors.
Not including the content type means S3 will be serving the uploaded file as generic binary.
Since there are already Camel headers for this, I'm proposing that they be used when sending messages to S3. I can write a patch for this if it would help.
|Field||Original Value||New Value|
|Component/s||camel-aws [ 12314194 ]|
|Component/s||camel-atom [ 12313954 ]|
|Assignee||Christian Müller [ muellerc ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||2.8.0 [ 12316226 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|