Ad
"Firebase Storage Exception: Object Does Not Exist" I Don't Know Why
Firebase storage Exception occurs. The object is said to not exist But when I checked the debug window and the Firebase console, it's there. Please help me.
I tried the "Glide" library, but the "Using" method was not available. I also tried using the "FirebaseImageLoader" and "load" methods, but failed. I want to connect the image to ImageView without using the "Glide" library.
StorageReference storageReference = FirebaseStorage.getInstance().getReference();
StorageReference photoReference= storageReference.child("Image/"+fileName);
final long ONE_MEGABYTE = 1024 * 1024;
photoReference.getBytes(ONE_MEGABYTE).addOnSuccessListener(new OnSuccessListener<byte[]>() {
@Override
public void onSuccess(byte[] bytes) {
Bitmap bmp = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
imageView.setImageBitmap(bmp);
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception exception) {
Toast.makeText(getApplicationContext(), "No Such file or Path found!!", Toast.LENGTH_LONG).show();
}
});
The value (url) of the "photoReference" is the same as the "storage location" of my image in the Firebase Console. So why does the exception occur that the object does not exist? I'm very curious.
Ad
Answer
Please check following answer Firebase StorageException when download
Ad
source: stackoverflow.com
Related Questions
- → should I choose reactjs+f7 or f7+vue.js?
- → Phonegap Android write to sd card
- → Local reference jquery script in nanohttpd (Android)
- → Click to navigate on mobile devices
- → How to allow api access to android or ios app only(laravel)?
- → Access the Camera and CameraRoll on Android using React Native?
- → React native change listening port
- → What is the default unit of style in React Native?
- → Google play market autocomplete icon
- → Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`
- → Using Laravel with Genymotion
- → react native using like web-based ajax function
- → react native pdf View
Ad