0

MDN Blob page says:

An easy way to construct a Blob is by using the BlobBuilder interface, which lets you iteratively append data to a blob, then retrieve the completed blob when you're ready to use it for something.

But BlobBuilder is not available on every browser where Blob is (Opera for example).

Are there any other ways of getting a Blob?

1 Answer 1

1

probably add a check like this on you rpage

**// Check for the various File API support.
if (window.File && window.FileReader && window.FileList && window.Blob) {
  // Great success! All the File APIs are supported.
} else {
  alert('The File APIs are not fully supported in this browser.');
}**

you can handle the else in any way you want probably an alternative. What do you think?

Sign up to request clarification or add additional context in comments.

2 Comments

you might also want to read this: davidflanagan.com/Talks/jsconf11/BytesAndBlobs.html
+1 for comment, but for the actual response - I was asking for a different thing. I need a Blob object in a browser that doesn't support BlobBuilder, but supports Blob itself...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.