I wanted to create an image slider to show images from the Firestore. I searched online a lot but didn't find anything to get started. There are a few videos online but they are for Java, but I want for Kotlin. I have made a set-up to upload an image but I can only upload one image per product. How can I upload multiple images per product and show display them too? Thank you.

1

There are 1 best solutions below

5
On

Firestore does not support native images, it is a Document based database with a JSON like structure. You could convert images to Base64 strings, but you would have to ensure they are compressed as Firestore documents are restricted to 1MB each.

Once you download the firestore document, you convert it back from base64 to an image asset that you can insert within your app like you would a standard asset/image

Resources: