A JS code snippet - reading a file element as blob
Occasionally there is a need to handle and process a binary file on the web browser, then there is a need to read files as blob.
This is a short code snippet to accomplish just that.
const uploadedFile = document.getElementById('file-elem');
const re...
andrewbkim.dev1 min read