I am aware about about Firebase Storage Extensions, but is there a method to upload and retrieve files (specifically PDF) through MIT App inventor. I want to use firebase realtime db for it.
Is there a method to upload the files to some we server or directory and save the link in firebase DB? Or can we convert the files to 64 base form and save it in DB?
Please tell how to do it. Any method would work, but I have to just store the files in firebase DB and also retrieve them using app.
You would need to convert the pdf files to a base64 string in order to store them in the realtime database, and then decode the base64 string to a file when you retrieve it. Not efficient. Use Firebase Storage for files, and realtime database for data.
If you do not want to use an extension for firebase storage, then use the web component:
Let me place it clearly. When the user logs in the app, he can upload a file using filepicker. Now, you are saying I will have to download the file in my device, and then the app will post the dile to the web component into the storage. But, how will this process of getting the files on my computer be automated?
I took this to be stored on another server somewhere.
If the file is on the device, preferably stored in the ASD so that your app can access it, then provide the correct file path to upload it to Firebase Storage.
How can this automation be brough with the part of downloading the file the user picked in the app, into my device so that it can be easily uploaded to the fb storage?
Thanks, I read your guide and now have put everything in place.
Just, one more thing. Is there a method to display the file downloaded from the FB Storage in the app itself? Like some PDF viewer extension or something? Image can be displayed using the Image component, but with PDF's I am actually stuck.