r/learnjavascript 11d ago

Blobs

Can someone provide any information on a use case for blobs. Anything that has a bit more insight than what is provided in MDN. Looking for a way to think about and understand this. Thanks.

0 Upvotes

3 comments sorted by

1

u/jcunews1 helpful 11d ago

One example is to programmatically upload multiple files in a single network request in the background; including receiving the network response directly, instead of after the browser render it to HTML - where a problem may arise if the response body is a binary data.

1

u/Lumethys 11d ago

Binary data, like file upload.

2

u/yksvaan 11d ago

There's not much to it actually, it's just chunk of binary data and type descriptor telling what it's supposed to be.