I am writing a Chrome extension, where the background page has created a Blob object and now I want to somehow send this object via message passing to the main page with a content script.
Apparently, sending Blob directly is not possible, since it just ends up as being an ordinary Object on the other side, what is the best way to actually send the content of the Blob?
edit: to make sure what I want
- I have Blob on the sender's side
- I want Blob on the receiver side with exactly the same content as the original Blob. It doesn't need to be the same object.
Relevant documentation: http://developer.chrome.com/extensions/messaging.html