The Journey of #100DaysOfCode (@Ayman_Dandan)

๐ƒ๐š๐ฒ ๐Ÿ: Introducing ๐๐ฅ๐จ๐›๐ฌ

no, not the slimesโ€ฆ although quite similar in not having a defined form or structure

A Blob (short for Binary Large Object) is an object that represents immutable raw binary data and can take many forms. Itโ€™s commonly used to handle File uploading, Image processing, and large data operations. Blobs can be read as text or binary data or converted into a ReadableStream for further processing.

โ†’ ๐˜ฝ๐™ก๐™ค๐™— ๐™˜๐™ง๐™š๐™–๐™ฉ๐™ž๐™ค๐™ฃ:
Blobs are created using the Blob() constructor, which takes an array of parts (data that is stored in the blob), and mainly the type of the blobโ€™s data. For example, text/plain, image/jpeg, application/json, audio/mp3, โ€ฆ

โ†’ ๐˜พ๐™ง๐™š๐™–๐™ฉ๐™ž๐™ฃ๐™œ ๐˜ฝ๐™ก๐™ค๐™— ๐™๐™๐™‡:
Blob URLs allow you to reference Blob objects in your applications as if they were regular URLs. This is particularly useful for creating downloadable links or embedding multimedia content.

โ†’ ๐™๐™š๐™ซ๐™ค๐™ ๐™ž๐™ฃ๐™œ ๐˜ฝ๐™ก๐™ค๐™— ๐™๐™๐™‡:
Of course, after you are done with the URL, you need to free up the memory used by the blob URL by revoking it. :broom:

3 Likes