How do you save a file to a Firebase Hosting folder location for images through android? -


i'm new firebase , studying how implement right now. thinking has functions similar parse parsefile object can created holds file , has functions upload following :

parsefile parsefile = new parsefile(file); parsefile.saveinbackground(); 

if have suggestions and/or working solutions post them exceptionally useful.

i studying retrofit has great way of sending multipartpost requests , if ever tied firebase can't find connection yet.

thanks in advance!

firebase hosting service hosting static assets, typically html/css/images of web site. cannot programmatically add files firebase hosting.

the firebase database allows store json data. while binary data not type supported in json, possible encode binary data in base64 , store image in (large) string. see can store image files in firebase using java api? note while possible, not recommended small images or curiosity see can done.

your best option typically store images on 3rd party image storage service.


Comments