I want to save an image in aws bucket I get this url when I upload image from file in JSP page
blob:http%3A//localhost/7555f111-bb1e-4d3d-90c6-0bb14875e25a
I have this code:
public String uploadImageToS3(String uri,String image)
{
try{
File file = createFileForS3(image);
S3StreamUpload s3 =new S3StreamUpload();
String result = s3.fileUploader("rosh-haayin-images",uri,file.getAbsolutePath());
if(result.equals("unsuccess"))
{
status="-1";
}
System.out.println(result);
} catch(Exception e){
System.out.println(e.getMessage());
status="-1";
}
return status;
}
I want to use that src to get the image or file for use it in the fanctioin How can i convert it to image string or to file ?