Форум для тех, кто программирует под Android
-
Anonymous
Произошло исключение StorageException. Объект не существует по указанному адресу. Хранилище FireBase
Сообщение
Anonymous »
Я хочу отображать изображение в imageView, вот что я делаю: я использую FirebaseUI для отображения изображений из хранилища FireBase.
Код: Выделить всё
FirebaseStorage storageDisplayImg;
StorageReference storageRef;
private FirebaseAuth auth;
storageDisplayImg=FirebaseStorage.getInstance();
auth = FirebaseAuth.getInstance();
FirebaseUser userConnect = auth.getCurrentUser();
String id_user=userConnect.getUid();
storageRef = storageDisplayImg.getReference().child(item.getChemin_image()); // return gs://mydreambook-32321.appspot.com/images/test23-03-2017_16:46:55
if (item.getChemin_image() != null&&id_user != null) {
Glide.with(convertView.getContext() )
.using(new FirebaseImageLoader())
.load(storageRef)
.into(profilePic);
profilePic.setVisibility(View.VISIBLE);
} else {
profilePic.setVisibility(View.GONE);
}
Но у меня такая ошибка:
Код: Выделить всё
StorageException has occurred. Object does not exist at location. Code: -13010 HttpResult: 404
Обновление, изображение в хранилище FireBase
Подробнее здесь:
https://stackoverflow.com/questions/429 ... age-fireba
1732348159
Anonymous
Я хочу отображать изображение в imageView, вот что я делаю: я использую FirebaseUI для отображения изображений из хранилища FireBase.
[code]FirebaseStorage storageDisplayImg;
StorageReference storageRef;
private FirebaseAuth auth;
storageDisplayImg=FirebaseStorage.getInstance();
auth = FirebaseAuth.getInstance();
FirebaseUser userConnect = auth.getCurrentUser();
String id_user=userConnect.getUid();
storageRef = storageDisplayImg.getReference().child(item.getChemin_image()); // return gs://mydreambook-32321.appspot.com/images/test23-03-2017_16:46:55
if (item.getChemin_image() != null&&id_user != null) {
Glide.with(convertView.getContext() )
.using(new FirebaseImageLoader())
.load(storageRef)
.into(profilePic);
profilePic.setVisibility(View.VISIBLE);
} else {
profilePic.setVisibility(View.GONE);
}
[/code]
Но у меня такая ошибка:
[code]StorageException has occurred. Object does not exist at location. Code: -13010 HttpResult: 404
[/code]
Обновление, изображение в хранилище FireBase
[img]https ://i.sstatic.net/lUZ90.png[/img]
Подробнее здесь: [url]https://stackoverflow.com/questions/42982147/storageexception-has-occurred-object-does-not-exist-at-location-storage-fireba[/url]