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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -