Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #36910

Re: fetch with blobs

Path csiph.com!weretis.net!feeder7.news.weretis.net!news.albasani.net!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: fetch with blobs
Date Fri, 14 Jun 2019 13:06:21 +0200
Organization PointedEars Software (PES)
Lines 31
Message-ID <1857014.oMNUckLgyt@PointedEars.de> (permalink)
References <WLednVoOy_y7jJ7AnZ2dnUU7-U3NnZ2d@westnet.com.au> <7IadnQlzfY0rrZ7AnZ2dnUU7-c3NnZ2d@westnet.com.au>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace news.albasani.net BAW9PKPaFm+bl9WVYfwaSqdjR8pxEDLFT5IkBciD3c7MywhZgCOz6QkxPqmJY97/yJzrtDt7AoqmD+i5u/v4IyR1XGY0HviEIdq8kwFvRSO2ZG4LQ4UA6UANp/MkXIcT
NNTP-Posting-Date Fri, 14 Jun 2019 11:06:21 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="PTOlOBOOBeH3zOJb/NSJJrDOgfP8rxUr6jtni6CCyTuvbX9xRuJ6x+uPnrxaBH5U8NgYNd/LMIU8LWcmkur1Imct9LaInLrgdxhl2YcXQaIv3w0BCqN5tBy7Oxq1F7mh"; mail-complaints-to="abuse@albasani.net"
User-Agent KNode/4.14.10
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Cancel-Lock sha1:oo4P2feDgYtWhoot1dR/UfxXbM8=
Xref csiph.com comp.lang.javascript:36910

Show key headers only | View raw


Andrew Poulos wrote:

> On 14/06/2019 1:14 pm, Andrew Poulos wrote:
>> When successful, this
>> 
>> fetch(imageSrc, {
>>  headers: headesr,
>> })
>> .then(function(res) {
>>  return res.blob();
>> })
>> .then(function(blob) {
>>  console.log(blob); // gives blob [object Blob] in Edge
>>  //       Blob {...} in Chrome
> 
> I changed it to this
>    let b = blob;
>    upload(b);
> 
> and Edge's console says it's now [object Blob] but interacting with the
> blob makes it seem like the blob is null/empty.

What is that supposed to mean?

RTFM.
 
-- 
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


Thread

fetch with blobs Andrew Poulos <ap_prog@hotmail.com> - 2019-06-14 13:14 +1000
  Re: fetch with blobs Andrew Poulos <ap_prog@hotmail.com> - 2019-06-14 15:29 +1000
    Re: fetch with blobs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-06-14 13:06 +0200
    Re: fetch with blobs JJ <jj4public@vfemail.net> - 2019-06-14 18:56 +0700
      Re: fetch with blobs Julio Di Egidio <julio@diegidio.name> - 2019-06-14 05:54 -0700
        Re: fetch with blobs Andrew Poulos <ap_prog@hotmail.com> - 2019-06-15 16:40 +1000
          Re: fetch with blobs JJ <jj4public@vfemail.net> - 2019-06-15 14:16 +0700
            Re: fetch with blobs Andrew Poulos <ap_prog@hotmail.com> - 2019-06-15 19:02 +1000
              Re: fetch with blobs Andrew Poulos <ap_prog@hotmail.com> - 2019-06-15 19:31 +1000
                Re: fetch with blobs JJ <jj4public@vfemail.net> - 2019-06-16 15:28 +0700
                Re: fetch with blobs Julio Di Egidio <julio@diegidio.name> - 2019-06-16 03:46 -0700
          Re: fetch with blobs Julio Di Egidio <julio@diegidio.name> - 2019-06-15 03:51 -0700
            Re: fetch with blobs Andrew Poulos <ap_prog@hotmail.com> - 2019-06-16 08:21 +1000
        Re: fetch with blobs JJ <jj4public@vfemail.net> - 2019-06-15 14:14 +0700
          Re: fetch with blobs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-06-15 12:55 +0200
            Re: fetch with blobs Julio Di Egidio <julio@diegidio.name> - 2019-06-15 04:02 -0700

csiph-web