1

I was trying to execute the CAMERA program available on Phonegap docs.

I am new to PhoneGap.

While Executing that program I found out that,pics that are taken from the app,does not get stored anywhere.

2 queries

query 1) That is i take pictures,...those are there....when i come and open the app for the 2nd time..no Pics(here I open the application twice)

query 2) Suppose, I select 1 photo from the gallery,now i want the other photo too...when i select the second the 1st one vanishes....(here I open the application once)

Where should I store the photos clicked from the app and HOW should I store --i mean the procedure to do it/method to be followed.

suggestions and solutions please!!

user
  • 1,001
  • 4
  • 21
  • 45
  • 1
    You will have to store the photo path in local database. Check my answer to this question [here](http://stackoverflow.com/questions/14928202/save-image-in-local-storage-phonegap/16648829#16648829) – Amol Chakane Jun 18 '13 at 13:21

1 Answers1

1

To save the picture, someone has written a plugin. You can find it here : base64ToPNG

And you can get the base64 just like in phonegap docs camera.getPicture

Community
  • 1
  • 1
gaepi
  • 404
  • 3
  • 14
  • thank you, for this answer.but, could please explain what does this code stands for `var myBase64 = "data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="//a red dot` and this `window.plugins.base64ToPNG.saveImage(myBase64, {filename:"dot.png", overwrite: true},` – user Jun 20 '13 at 06:17
  • **Could you please explain the working process of the suggested answer?** As I am new to the PhoneGap domain. – user Jun 24 '13 at 06:09