Android Upload Image To Amazon Storage With Image Path
I want to upload a image using it's file path. Most of the tutorial I have followed regarding upload image to amazon, there is select image option(image chooser from galary). But w
Solution 1:
Try this:
UriuriImg=Uri.parse(Environment.getExternalStorageDirectory().getPath()
+ "/Images/img1.jpg");
PutObjectRequestpor=newPutObjectRequest( Constants.getPictureBucket(),
Constants.PICTURE_NAME, newjava.io.File( uriImg) );
s3Client.putObject( por );
I hpoe this help:
Post a Comment for "Android Upload Image To Amazon Storage With Image Path"