Parthav Patel

Results 4 comments of Parthav Patel

taskSnapshot.getStorage().getDownloadUrl().toString() @DevRyz3n running this command would raise FileNotFoundException as the returned value is not the download url for file. Instead try this code where I have created a Task object...

@ChutiBro the error is due to getDownloadUrl() being deprecated. Try using the solution given [here](https://github.com/udacity/and-nd-firebase/issues/41#issuecomment-398141325)

@ChutiBro try this StorageReference photoRef = mChatPhotosStorageReference.child(selectedImageUri.getLastPathSegment()); // Upload file to Firebase Storage photoRef.putFile(selectedImageUri).addOnCompleteListener(new OnCompleteListener() { @Override public void onComplete(@NonNull Task task) { Task uriTask = task.getResult().getStorage().getDownloadUrl(); while(!uriTask.isComplete()); Uri downloadUrl...

@yhdesai I can do this. Also can you share your firebase database rules?