I am in a bit of trouble with uploading images on Amazon S3 servers,my objective goes like:
- Create image on Html5 canvas by dragging and dropping images in it,
- Then upload/save the image in Amazon S3 server.
My app properly creates the image, and asks the user to save the image; with the help of JS libraries
But the problem:
- I need to save them directly to S3 server, not on my local. I have been using java-aws sdk.
My own ideas,
- I could save the image on my local machine, and then upload using the java-aws-sdk but that would be a longer process i.e. saving in local and then uploading in s3 server.
Is there any way to get the image-data or image to backend scala code and then converting it into some image obj (since java-aws seems to need a file to upload) and then I would be using java-aws sdk for the rest.