Save image in local storage phonegap

view story

http://stackoverflow.com – i am quite new in phonegap and it says that it has a capture feature so i used it and was very nice however I displayed the picture in the html but i dont know how to save the image. according to http://docs.phonegap.com/en/1.7.0/cordova_camera_camera.md.html You can do whatever you want with the encoded image or URI, for example: Render the image in an tag (see example below) Save the data locally (LocalStorage, Lawnchair, etc) Post the data to a remote server Unfortunately there was no sample code on how to do it How do i save image in LocalStorage? (HowTos)