WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is my app billed every time an img downloads the url? If so I think the better way is to download the image with xhr once and store it in the app like this
getDownloadURL(avatarRef)
.then(url => {
const xhr = new XMLHttpRequest();
xhr.responseType = 'blob';
let blob;
xhr.onload = (event) => {
blob = xhr.response;
};
xhr.open('GET', url);
xhr.send();
// when the blob is returned
imgList.map(img => img.src = URL.creatObjectURL(blob);
})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In an app, an avatar could be displayed at many places. If I use
is my app billed every time an img downloads the url? If so I think the better way is to download the image with xhr once and store it in the app like this
Beta Was this translation helpful? Give feedback.
All reactions