Javascript Blob is an inbuilt object that represents a file-like object of immutable, raw data. Blobs represent data that isn’t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user’s system.

Javascript Blob Object

Blobs are immutable objects that represent raw data. The file is a derivation of Blob that represents data from the file system. Use FileReader to read data from a Blob or File. Blobs allow you to construct file-like objects on the client that you can pass to APIs that expect URLs instead of requiring the server provides the file.

We can construct Blob from other non-blob objects and data, use the Blob() constructor.

#javascript #js #javascript blob

Javascript Blob Object Example | Blob Object Explained
7.95 GEEK