Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blob objects aren't saved well #59

Closed
Toneti777 opened this issue May 30, 2013 · 4 comments
Closed

Blob objects aren't saved well #59

Toneti777 opened this issue May 30, 2013 · 4 comments

Comments

@Toneti777
Copy link

I try to save a blob object (image convert to blob) into a webSQL database using the IndexedDB Polyfill on Chrome...

I think that the blob object is been stored like a normal object (JSON String)...this is the log I receive..

SQL for adding INSERT INTO 'imgBGEjemplaresComprados' ( key, value ) VALUES ( ?, ?)
Array[2]
0: "2-http://programaquiosco.renr.es:8080/datosQuiosco/ejemplares/www.lanueva....."
1: "{"type":"image/jpg","size":89276}"
length: 2
proto: Array[0]

The second element should be the blob but the size of table is small.

When I retreive the value, I can't convert it to URL and have a type error..

There are any solution??

Thanks in advance, and sorry about my English.

@Toneti777
Copy link
Author

Any comments??

@doonmcgill
Copy link

To verify this, use an sqlite browser (I use the sqlite addon in firefox) to look inside the websql database (the db file - in Ubuntu - is at ~/.config/google-chrome/Default/databases/file_0 and in my system is simply called "1"). You can see what is actually stored...

@SergiDiaz
Copy link

I've just found this bug in my code, anybody has a solution? Facebook indexedDB polyfill doesn't work, neither.

@JamesMessinger
Copy link
Collaborator

Can you please try this again with the latest version of IndexedDBShim? We've fixed a ton of bugs lately, including many involving how data is serialized and deserialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants