I'm making a lost and found app, and it lets user to upload a picture, fill item name, date, etc. I'm storing all of these item infos in a dictionary then store it in the firebase realtime database. How do I show the item image from the firebase RTDB in the listview? (I'm showing it alongside the item name)
Are you passing the url of the uploaded image to your firebase data along with the other infos ?
You cannot upload images directly to a firebase rtdb.
yeah I tried uploading it directly. It shows the image normally but not on another device. How do I make it visible on another device as well?
You probably only uploaded the file path (as text) which is why you can only see the image on your device (because that is where it is!).
Actually upload your image to firebase storage or some other online resource, return the direct url, and store that in the firebase rtdb
How do I do that? I tried using firebase storage but it told me to upgrade the plan. Any other alternatives? I tried converting to base64 as well, but idk how to convert it back to image synchronously with item name etc
Upgrade the plan. Unless you go viral, there is enough free space and usage for testing.
(post deleted by author)
I tried and it asked for credit card (I still have none). Any other alternatives? is it possible for me to convert base64 to image and vice versa synchronously?
Yes, there are several base64 extensions available for this:
Here is mine:
wow thank you!

What should I do with the filePath?
The easiest location is in the ASD.
You will need to provide an absolute path to the extension block - e.g.
/storage/emulated/0/Android/data/<packageName>/files/filename.jpg
(you can build this path using the File component)
You might be returning the image filename with your firebase data ?
You should look at using that path for the next time the image is required, instead of having to convert it each time.