Search code examples
javascriptblobconsole.log

How can I console.log() a Blob object?


I have a Blob object I want to inspect by logging its value. All I can see are type and size properties. Is there a way to do this?

console.logging a blob shows this


Solution

  • Updated for 2023, this can now be done with

    await blob.text()
    

    (Thanks @Kaiido)