Create virtual Uri from a local photo

Viewed 21

I want to save a local image in the firestore database so that it can be accessed from different devices. The problem is that the image is saved with the address with which it is saved on the device itself and makes it impossible to open it from other devices.

The uri is saved like this:

file:///storage/emulated/0/Android/data/files/DCIM/IMG_20211019_174021266.jpg

What would be the best way?

0 Answers
Related