How can I make a really long string using IndexedDB without crashing the browser?

Storing a Blob will use a lot less space and resources as there is no longer a need for conversion to base64. You can even store “text/plain” objects as blobs: var blob = new Blob([‘blob object’], {type: ‘text/plain’}); var store = db.transaction([‘entries’], ‘readwrite’).objectStore(‘entries’); // Store the object var req = store.put(blob, ‘blob’); req.onerror = function(e) … Read more

How to save .xlsx data to file as a blob

I had the same problem as you. It turns out you need to convert the Excel data file to an ArrayBuffer. var blob = new Blob([s2ab(atob(data))], { type: ” }); href = URL.createObjectURL(blob); The s2ab (string to array buffer) method (which I got from https://github.com/SheetJS/js-xlsx/blob/master/README.md) is: function s2ab(s) { var buf = new ArrayBuffer(s.length); var … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)