amazon web services - Getting Error while uploading image file to S3 via the AWS java SDK -
amazon web services - Getting Error while uploading image file to S3 via the AWS java SDK -
i uploading image file s3 via aws java sdk, here code:
amazons3 s3 = new amazons3client(basicawscredentials) putobjectrequest putobj = new putobjectrequest(bucketname, folderpath, getfile(filename,filecontenttoupload)); putobj.setcannedacl(cannedaccesscontrollist.publicread); s3.putobject(putobj);
on windows scheme working fine, on linux giving next error:
error message: unable calculate md5 hash: chrysanthemum.jpg (no such file or directory)
linux case sensitive. windows not.
try "ls" , note case.
use same case in program.
java amazon-web-services amazon-s3
Comments
Post a Comment