Getting Error while uploading image file to S3 via the AWS java SDK

Question:

I am uploading image file to S3 via the AWS java SDK,
Here is my code:

on windows system its working fine, but on linux its giving following error:

Error Message: Unable to calculate MD5 hash: Chrysanthemum.jpg (No such file or directory)

Answer:

linux is case sensitive. windows is not.

try to an “ls” and note the case.

use the same case in your program.

Leave a Reply