I am trying to map an image from firebase to html img tags, but it cannot get the image.
Javascript Code:
var storageRef = firebase.storage().ref(); var spaceRef = storageRef.child('images/photo_1.png'); var path = spaceRef.fullPath; var gsReference = storage.refFromURL('gs://test.appspot.com') storageRef.child('images/photo_1.png').getDownloadURL().then(function(url) { var test = url; }).catch(function(error) { });
html code:
<img src="test" height="125" width="50"/>
javascript html firebase firebase-storage
crispy2k12
source share