Reputation: 7591
I tried out the image blog storage in IndexDB talked about in this article
But with Chrome V23 I am getting this error:
Uncaught Error: DataCloneError: DOM IDBDatabase Exception 25 base.js:52
putElephantInDbbase.js:52
(anonymous function)
Here is the code snippet: (blob is an xhr.responseType = "blob" that holds elephant.png (as per the example at the top). The error happens on the last line.
var transaction = db.transaction(["elephants"], "readwrite");
var store = transaction.objectStore("elephants");
var req = store.put(blob, "image");
I am assuming binary blob PUT is not yet supported, correct? (It does work in FireFox 17, and IE 10)
Upvotes: 1
Views: 725
Reputation: 2813
I guess you are right and it's not (yet) supported. Here is the bug/request that deal with this issue: https://code.google.com/p/chromium/issues/detail?id=108012
Upvotes: 2