Skip to content
Advertisement

Tag: amazon

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! Answer Instead of Reader and Writer classes you should be using InputStream and OutputStream classes:

Advertisement