Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #39390
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: blob from createobjecturl |
| Date | 2021-01-24 22:18 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <3090553.aeNJFYEL58@PointedEars.de> (permalink) |
| References | <6sednXpeKZTIepH9nZ2dnUU7-UHNnZ2d@westnet.com.au> <1kye5d66kuzsq.35roj57zcq3p.dlg@40tude.net> |
JJ wrote:
> On Sun, 24 Jan 2021 14:19:46 +1100, Andrew Poulos wrote:
>> fetch(url)
>> .then(response => {
>> return response.blob();
>> })
>> .then(b => {
>> myImage.src = URL.createObjectURL(b);
>> })
>> .catch(err => console.log(err));
>> […]
>
> Object URL is only valid for the client.
More, “[t]he URL lifetime is tied to the document in the window on which it
was created.”
<https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL>
--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
blob from createobjecturl Andrew Poulos <ap_prog@hotmail.com> - 2021-01-24 14:19 +1100
Re: blob from createobjecturl Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-01-24 05:01 +0100
Re: blob from createobjecturl Andrew Poulos <ap_prog@hotmail.com> - 2021-01-25 07:40 +1100
Re: blob from createobjecturl Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-01-24 22:26 +0100
Re: blob from createobjecturl JJ <jj4public@gmail.com> - 2021-01-24 19:29 +0700
Re: blob from createobjecturl Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2021-01-24 22:18 +0100
Re: blob from createobjecturl "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-01-24 09:18 -0800
csiph-web