Skip to content
Advertisement

Tag: amazon-web-services

How to download GZip file from S3?

I have looked at both AWS S3 Java SDK – Download file help and Working with Zip and GZip files in Java. While they provide ways to download and deal with files from S3 and GZipped files respectively, these do not help in dealing with a GZipped file located in S3. How would I do this? Currently I have: Clearly,

How should I handle “java.net.SocketException: Connection reset” in multithread AWS S3 file upload?

I have a ThreadPoolExecutorService to which I’m submitting runnable jobs that are uploading large (1-2 GB) files to Amazon’s S3 file system, using the AWS Java SDK. Occasionally one of my worker threads will report a java.net.SocketException with “Connection reset” as the cause and then die. AWS doesn’t use checked exceptions so I actually can’t catch SocketException directly—it must be

Invalid Availability Zone when creating Instance

I’m attempting to create instance on us-west-1c (though I get the same error when trying 1b, or any other AZ) and I’m getting this error: I can manually create the instance via the AWS console. Here is my code to create that instance: I’ve looked over this a hundred times, compared to other examples I’ve found online but I’m unable

Amazon S3 upload file and get URL

Is it possible to upload a txt/pdf/png file to Amazon S3 in a single action, and get the uploaded file URL as the response? If so, is AWS Java SDK the right library that I need to add in my java struts2 web application? Please suggest me a solution for this. Answer To make the file public before uploading you

Advertisement