1
I am making a mobile app in HTML5 and need to store data from MP3 files and bitmap images in Torage localStorage. The problem is that only to store String then I need to convert a buffer in String to store and then the opposite to recover.
I tried to those two replies (first and second), but I was unsuccessful.
The first of the mistakes
Uncaught Rangeerror: Maximum call stack size exceededtestaudio.html:37 ab2strtestaudio.html:63 (Anonymous Function)Xmlhttprequest.send (async)testaudio.html:132 loadSongtestaudio.html:136 (Anonymous Function)
The second not of the error but the audio does not play.
I always used these functions (the first answer) without problems, I think this error is due to the volume of data is very large. Try this version "looped" and see if it solves your problem.
– mgibsonbr