Right now i am fetching image from Storage of Firebase by using below code :
mStoreRef.child("photos/" + model.getBase64Image()) .getDownl
This should be how it should be done in kotlin you need to add an onCompleteListener
putFile(file).addOnSuccessListener { it.storage.downloadUrl.addOnCompleteListener { //then you can call it.result.toString() } }