Lately i've been working extensively on a project which includes
localStorage. I hit a small problem regarding how an end user can recover
thier data from
localStorage. This would be useful if the user ever wanted to transfer their data to a new computer or browser.
I stumbled on a
very hackey elegant way to download the data through the use of data URI's. These allow you to embed small files inline in documents. Give it a go below.
Give it a try!
You could easily pair this with the
FileReader object to read the files back in.