robnyman/robnyman.github.com

Error on trying to store Image to IndexedDB in Chrome.

Closed this issue · 1 comments

Hello! I was trying to make my own engine for caching assets for my web app, and was considering IndexedDB, Your example of storing images using db is quite popular on webs, but it seems, it has a problem:
http://robnyman.github.com/html5demos/indexeddb/

   base.js:48  Uncaught Error: DataCloneError: DOM IDBDatabase Exception 25  

Does this mean that my Crome Version 23.0.1271.101 won't be able to store Blobs in IndexedDB and I should consider using other storage options?
Or this is a glitch in a code, you are using? By the way, it also throws some warnings. Here is whole output

   Success creating/accessing IndexedDB database base.js:75
   Image retrieved base.js:27
   Blob:[object Blob] base.js:31
   Putting elephants in IndexedDB base.js:42
   Numeric transaction modes are deprecated in IDBDatabase.transaction. Use "readonly" or "readwrite".
   Uncaught Error: DataCloneError: DOM IDBDatabase Exception 25 base.js:48

I believe Chrome had a bug about supporting the blob format. I'll see about the read transaction format, and whether the new has become standard. We'll free to try either, and see what works for you. :-)