GalleryRefresh block will refresh the gallery when the image saved so image will automatically shown in gallery app.
Note : filename.png is the name of image file saved in storage. It should be same everywhere I used filename.png.
The root directory of the External Storage is /storage/emulated/0/ , you can also replace this with /storage/82C3-E96C/ to save image in External (removable / micro) SD card.
Save Image in Sub Directory ; you can also replace this path with any other subdirectory, e.g.:
Note : It is not possible to save image in external removable sd card in API 19, Android 4.4 / KitKat or higher.
I have made this guide because many users reported that the image didn’t display automatically in gallery and I have also faced the same issue.
Would be great if we can convert image componant to Base64 without using any path image.
With SurfaceView it’s possible to display image from Camera without having to save it on the disk, so from there i would love to get it as base64, all tha base64 extension require path.