Yan Loader

29 Aralık 2019 Pazar

An Introduction To JavaScript Blobs and File Interface

An Introduction To JavaScript Blobs and File Interface
What is a Blob?
A blob object represents a chuck of bytes that holds data of a file. But a blob is not a reference to a actual file, it may seem like it is.
A blob has its size and MIME type just like a file has. Blob data is stored in the memory or filesystem depending on the browser and blob size. A blob can be used like a file wherever we use files.
Most APIs for working with blobs are asynchronous. But synchronous versions of APIs are also available so that they can be used in Web Workers.
Content of a blob can be read as ArrayBuffer and therefore it makes blobs very handy to store binary data.

Hiç yorum yok:

Yorum Gönder