Storageexception Has Occurred. Object Does Not Exist At Location. Storage Firebase
Solution 1:
I had the same problem right now and I realized that my image in storage ends with .jpg but my code is asking for the address that ends with .png. After I fixed that, it ran perfectly for me.
Solution 2:
You can simply show the image in two ways using Glide method. If we want to access below method, we must change the Firebase Storage Rules. Here I included my rules.
service firebase.storage {
match /b/project-id.appspot.com/o {
match /{allPaths=**} {
allow write: if request.auth != null;
// or allow write: iftrue;
}
}
}
Method 1. Simply use the Firebase Reference
FirebaseStorage storage = FirebaseStorage.getInstance();
StorageReference storageRef = storage.getReferenceFromUrl("gs://your-id.appspot.com");
StorageReference pathReference = storageRef.child("images/cross.png");
Glide.with(context)
.using(new FirebaseImageLoader())
.load(pathReference)
.into(Imageview)
Method 2. Firebase URL
Glide.with(context)
.using(new FirebaseImageLoader())
.load("Firebase_ImageURL")
.into(Imageview)
Solution 3:
hi i faced such problem two days ago. storage exception occurs normally to the projects which you created with google developer console prior to Firebase launch. so when i connected my app to existing project on Firebase it worked. to confirm whether your project accepts storage or not go to Firebase console and on left click storage if you were displayed with the file upload option there the project is capable of storage other wise not.
Solution 4:
Okay i found solution when i got to know that i had to give complete path of an image
storageReference.child("users").child(userID).child("screenshot")
.child(imagePath).getFile(localFile)
And i was initially giving incomplete path
storageReference.child("users").child(userID).child("screenshot").getFile(localFile)
Solution 5:
I had a similar problem. I was trying to delete a file with some wrong case letters
Example: Deleting file_of_user_uidabcde.png
by searching for file_of_user_uIdAbCdE.png
Post a Comment for "Storageexception Has Occurred. Object Does Not Exist At Location. Storage Firebase"