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.:
/storage/emulated/0/Download/ or
/storage/emulated/0/Download/DCIM/
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.
Please read this guide and clarify the terms “Internal Storage” and “External Storage”:
According to your definition / understanding of the terms, it is not possible to save a file in the external storage (→ removeable / micro SD card) since API 19, Android 4.4 / KitKat.
Note: API 19 is the standard minimum SDK in Kodular (minSdkVersion = 19).
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.