Hai, I was thinking along the same lines. Then I figured out I could make use of node.js, ie. use AWS SDK for javascript in node.js.
var AWS = require('aws-sdk');
AWS.config.update(
{
accessKeyId: ".. your key ..",
secretAccessKey: ".. your secret key ..",
}
);
var s3 = new AWS.S3();
s3.getObject(
{ Bucket: "my-bucket", Key: "my-picture.jpg" },
function (error, data) {
if (error != null) {
alert("Failed to retrieve an object: " + error);
} else {
alert("Loaded " + data.ContentLength + " bytes");
}
}
);
Try this out!
Hope this helps!!
To know more about Java, join our Java course online today.
Thank you