"Firebase Storage Exception: Object Does Not Exist" I Don't Know Why

- 1 answer

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[]>() {
            public void onSuccess(byte[] bytes) {
                   Bitmap bmp = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);

        }).addOnFailureListener(new OnFailureListener() {
            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.



Please check following answer Firebase StorageException when download