promise-file-reader icon indicating copy to clipboard operation
promise-file-reader copied to clipboard

new read methods

Open jimmywarting opened this issue 3 years ago • 0 comments

new blobs already have a promise api - it should be recommended/mention that it's now possible to do

  • await blob.text()
  • await blob.arrayBuffer()
  • blob.stream()
  • await new Response(blob).json()
  • img.src = URL.createObjectURL(blob) cuz you don't need base64 dataUrl

and using the filereader is discouraged since NodeJS have buffer.Blob but no FileReader for example.

jimmywarting avatar May 18 '21 19:05 jimmywarting