I am developing a Spring Boot Application that uses HTTPS Only. I am using AWS services and the corresponding AWS Java SDK. How can I view the HTTP(S) request that the java sdk methods call on the backend of my application? I want to make sure when doing uploads to S3, etc, that everything is done over HTTPS only as
Tag: amazon-s3
How to save/zip binary/octet-stream s3 content to zip
I am trying to add s3 bucket files into a zip. The files in the s3 bucket are in binary/octet-stream format. When I run the below method The IO Exception below is thrown when executing IOUtils.copy method “exception”: “Premature end of Content-Length delimited message body (expected: 206,034; received: 0)” Any suggestions on how I can handle this or what am
Uploading files to S3 in Multithreading
I’m uploading files to s3 using the s3 AWS client in my spring application, but sometimes I’m getting the error, So as a solution to this I used the following approach and it worked for now. I have created this as a Spring Bean. But I am using this in a multithreading environment. So there will many concurrent requests at
Image and PDF files getting corrupted while uploading on AWS S3
I am trying to upload images and PDF on AWS S3 using my Spring Boot app. They are getting uploaded in corrupt format without any error. Text files are uploaded successfully. public String …
AWS Transcribe S3 .wav file to text
I am trying to use aws Transcribe to convert a wav file to text. I have uploaded a wav file to S3, which is located here and it has public read/write permissions: https://s3.us-east-1.amazonaws.com/…
AWS Exception “Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4” even after set the v4 signature
I have below code to connect to AWS S3. System.setProperty(SDKGlobalConfiguration.ENABLE_S3_SIGV4_SYSTEM_PROPERTY, “true”); try { s3Client = new AmazonS3Client(new …
Save text pdf direct to s3 without having to save it locally
I am generating pdf files using itext 5 and Java, and saving them locally then saving these local saved files on AWS S3. Is there a way to just send them straight to S3 without having to save them …
Getting NoSuchMethoError While uploading file on Amazon S3 bucket
I was trying upload the file in Amazon s3 bucket using the server-less architecture below is the described flow ApiGateway->lambda->s3bucket I am sending Request using postman, image is encoded …
S3 link with longer expiration
I am generating a pre-signed link using the java sdk for a client. We have new requirements to allow the links to remain active for at least 30 days. When I set the expiration longer I get the below …
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,…