Relative Content

Tag Archive for javaspring-bootamazon-s3sigv4

The Content-MD5 you specified is not valid in java

I was trying to upload an file to AWS S3 using an rest api by sigv4, as per documentation I have configured everything, it was working when I upload an txt file but problem was when I upload an image or pdf it throws an error The Content-MD5 you specified is not valid in java, below is the code I tried