How to cache local images

I’m using images chosen by users in my application, I’m using the chooseimage component so, I search for images from the user’s gallery and save them using tinydb. but if the user deletes the images he chose to use in my application, they disappear, how can I cache these images and even if the user deletes them they still appear in my application? (I know there are extensions to cache images, but these extensions only accept image url, not local images)

No, you can load local images too with cache.

which extension?

Every image loading extension.

Thank u, i used " Glide Image Loader", sorry for the inconvenience