ios - iPhone phonegap image disappearing after the phone sits for some time -


i using phonegap 2.0.0 on ios , using stock image capture code. after image captured saved phone, uri saved database along rest of items info , image displayed on page.

all working on both ios , android. issue when ios phone turned off , allowed sit period of time (overnight) images no longer display. rest of data retrieved database , displayed images show black square image should (indicating info still inn database)

does ios rename images after being turned off , allowed sit time? suggestions? if phone turned off , on not happen.. after phone sits time...

this seems relevant... capturing , storing picture taken camera local database / phonegap / cordova / ios

for else having issue following code worked me...

    function capturephoto() { navigator.camera.getpicture(movepic, onfail,{ quality : 70 }); }  function movepic(file){  window.resolvelocalfilesystemuri(file, resolveonsuccess, resonerror);  }   function resolveonsuccess(entry){  var d = new date(); var n = d.gettime(); var newfilename = n + ".jpg"; var myfolderapp = "myphotos"; window.requestfilesystem(localfilesystem.persistent, 0, function(filesys) {       filesys.root.getdirectory( myfolderapp,                 {create:true, exclusive: false},                 function(directory) {                     entry.moveto(directory, newfilename,  successmove, resonerror);                 },                 resonerror);                 }, resonerror); } function successmove(imageuri) {     document.getelementbyid('smallimage').src = imageuri.fullpath;     //hidden input used save file path database     document.getelementbyid('site_front_pic').value = "file://"+imageuri.fullpath;     smallimage.style.display = 'block'; }  function onfail(message) { alert('failed load picture because: ' + message); }  function resonerror(error) { alert(error.code); } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -