Ellis Berner
posts
folio
about
Saving HTML5 To Filesystem
In a word:
toDataUrl()