I use Firebase Storage to upfile. But it does not work THIS IS MY CODE.
upfile
FirebaseStorage storage = FirebaseStorage.getInstance(); StorageReference sto
Using putStream() is the the recommended way for most files instead of putFile() (for local files on the device) like so:
putFile()
InputStream stream = new FileInputStream(new File(pathToYourFile))); UploadTask uploadTask = imageFileStorageReference.putStream(stream);