Reputation: 5248
Is it possible that our hosted web application(wrapped inside a Phonegap App) access local files from device data?
something like this:
<img src="storage\data\com.phonegap.myapp\img\sample.jpg" />
So that when the users open the mobile app, the images will be retrieved from the device storage.
Upvotes: 2
Views: 859
Reputation: 525
window.resolveLocalFileSystemURL(imageURI, function(fileEntry) {
fileEntry.file(function(fileObj) {
newimageURI = fileObj.fullPath;
alert(newimageURI);
});
});
I think it will help you
Upvotes: 4