Firebase Storage show "error loading preview" in the firebase console
Initially during uploading and loading it worked fine in my app. After Two days when I am checking if my app is working fine or not.
Screenshot of the firebase console:
My image uploading code:
if(imagePath!=null) {
FirebaseStorage.getInstance().getReference("admin").child(admin.getId()).putFile(imagePath);
}
My image Loading code:
FirebaseStorage.getInstance().getReference("admin").child(image_path) .getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
Glide.with(getApplicationContext()).load(uri).centerCrop().into(profileImage);
}
});
Please help me how to overcome this problem if you know.
Thanks Advance to firebase expertists
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…