小编sai*_*tty的帖子

如何在最新版本中使用getdownloadurl?

                Uri downloaduri=taskSnapshot.getDownloadUrl();//here i cant use getdownloadurl() function
                DatabaseReference new_prod=db.push();
                new_prod.child("product name").setValue(prod_name);
                new_prod.child("product price").setValue(prod_price);
                new_prod.child("available stock").setValue(prod_quan);
                new_prod.child("product image").setValue(downloaduri);
                pd.dismiss();//fragments code
Run Code Online (Sandbox Code Playgroud)

我无法使用getdownloadurl。我已经将图像存储在Firebase存储器中了吗?这是限制使用getdownloadurl的片段吗?我的动机是要进行查询以存储在firebase中。请帮助我。

android firebase firebase-realtime-database firebase-storage

0
推荐指数
1
解决办法
5829
查看次数