I believe that ‘camera’ component stores the local path of image. That is why when I try to see the saved photo from any other device, the photo does not show up.
Correct me if I’m wrong.
So if this is the case, is there anyway to make the picture taken and show it up ‘globally’. Like it is visible when the app is opened from any device?
As far as I understand, media db just returns a media url, and in the docs it mentions cloudinary is not mandatory , but should be used as a safe measure for privacy of your pics.
Here, I used firebase to save images corresponding to a user email.
umm… the algorithm is like…
when user clicks on snap button - > call camera → upload the photo to media url to get url → save this url (key) against an email id (value) in firebase
Point is, it is working if I snap using mobile ‘x’, but if I open the app using mobile’y’, the image doesn’t show up.
I’ll go through the doc which you have referrerd, Thanku so much for replying.
To have your image accessible by other users, you have to save the image on a cloud storage that the users can reach. Where are you saving the image to get the URL from the saved image.
Please note, I am not talking about the upload URL, I’m taking about the URL generated after uploading the image to the general repository.
Right. You’re saving the value of the green Photo block which is the actual image file. You should be saving the green mediaURL block instead which is the text url for the hosted image.
That solves my issue. So after user clicks on photo, we need to upload it to a common place on net…like google drive or something…n then maybe use media db.
Think of Media-DB as an upload tool so it will be used after taking the picture from the camera (or selecting from the Gallery) and before uploading to the common storage.