Is it possible to upload with InputStream to S3 object instead of write all contents to a file to improve performance? #3355
Labels
closing soon
Issue will auto-close if there is no additional activity within 7 days.
pending-community-response
Issue is pending response from the issue requestor
question
General question
s3
Issues with the AWS Android SDK for Simple Storage Service (S3).
State your question
We used the following code to write inputstream to S3, and is it possible to upload with InputStream to S3 object instead of write all contents to a file to improve performance?
/**
*/
public TransferObserver upload(String key, InputStream inputStream, UploadOptions options) throws IOException {
File file = writeInputStreamToFile(inputStream);
return upload(
options.getBucket() != null ? options.getBucket() : getDefaultBucketOrThrow(),
key,
file,
options.getMetadata() != null ? options.getMetadata() : new ObjectMetadata(),
options.getCannedAcl(),
options.getTransferListener()
);
}
Which AWS Services are you utilizing?
S3
Provide code snippets (if applicable)
Environment(please complete the following information):
public TransferObserver upload(String key, InputStream inputStream, UploadOptions options) throws IOException {
File file = writeInputStreamToFile(inputStream);
Device Information (please complete the following information):
The text was updated successfully, but these errors were encountered: