how go referencing image in firebase storage? i'm trying embed html in img tag. help!
you'd typically use so-called download url that. firebase documentation on getting download url:
storageref.child('images/stars.jpg').getdownloadurl().then(function(url) { // download url 'images/stars.jpg' // can inserted <img> tag var img = document.createelement('img'); img.setattribute('src', url); document.body.appendchild(img); }).catch(function(error) { console.error(error); });
Comments
Post a Comment