I have a scenario, where I have to take a picture of the user and save it to amazon cloud (Shai had guided me well on saving the image to amazon s3 bucket - Thank you.) Now that I can save the image and I am using URLImage to show the user profile picture on log in. I am not seeing the picture at all instead I do see the image that was cached very first time.
//Imagename is follows: customerId.jpg (e.g. 123456.jpg)
Image urlImg = URLImage.createToStorage(placeHolder, "123456.jpg", imageUrl);
I have used a label and to show the image(I don't know if I am doing the right thing)
label.setIcon(ulImg);
I still see the very first image I saved to s3 bucket. I did check the bucket and I do see the new image has been saved with customerId.jpg (123456.jpg). I want to achieve the following. Once new picture taken it should be displayed when user logs back in instead of showing the very first picture that was taken. Is there any way I can refresh the image? Please advise what is the proper way to do this.