Is it possible to convert file_uri to data_uri with phonegap, if so how
would I do so
I am trying to convert an image stored in the temp storage to DATA_URI. Is
this something you can do with phonegap. I tried the following but all i
get is "Undefined" in the xml:
var reader = new FileReader();
var imgData = reader.readAsDataURL(results.rows.item(i).PictureFile);
XML = XML + imgData;
I had originally stored the images as a DATA_URI when I took the photo and
it was "working" fine for me other than when I went on older devices and
had memory issues. If anyone has any advice to get the data_uri please let
me know.
Thanks
No comments:
Post a Comment