Skip to content
Advertisement

AWS S3 Java SDK – Download file help

The code below only works for downloading text files from a bucket in S3. This does not work for an image. Is there an easier way to manage downloads/types using the AWS SDK? The example included in the documentation does not make it apparent. Thanks!

JavaScript

Advertisement

Answer

Instead of Reader and Writer classes you should be using InputStream and OutputStream classes:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement