Closed Ciantic closed 11 years ago
Apologies. Argh, there is like million storage/db API's in HTML5 these days. What I'm looking for can be achieved with "File API" it has blob types, url resources etc.
Sorry for bothering.
P.P.S if someone founds this, do not use File API either! The FileWriter is not implemented in Firefox/IE only in Chrome. This effectively means I'm back to using IndexedDB and storing blobs to it. Then using URL.createObjectURL(yourblob) to get the urls.
Common usecase for localstorage have been to store blobs and serve as data-uris, which makes it even worse due to it's bad synchronous design decision.
Can this store blobs? Also those of us wanting to store blobs we'd like to increase the size of db to arbitrary value. Could you add a simple
storage.requestSize(int newSize)
function?In my use case I'd like to potentially save up to 1GB to there (this website runs only in kiosk touch screen) for very fast usage.