I would like to save uploaded file path to database. For this, Firebase gives me URI of uploaded file : taskSnapshot.getDownLoadUrl() . Now I need to save this to database for later use. What is the the correct way to save it as ? :
taskSnapshot.getDownLoadUrl().toString or taskSnapshot.getDownLoadUrl().getPath()?
For testing I tried to load (Glide) the uploaded image file into an imageview using these strings above as load() method parameter. toString works but getPath doesn't.