Hi this is a possible duplicate,
but all responses don’t help me out.
My cordova App with camera-plugin returns me the NATIV_URL. (asset-library…)
now I want to use this file in an Image <img src…> element.
How do I get a working img src URL from the asset-library URL??
PS:Accessing the PHOTOLIBRAY with the camera Plugin seems not to work anyway. Does it have something to do with this issue?
Regards
Gregor
ADD:
camera plugin returns:
assets-library://asset/asset.JPG?id=BE3E7B26-51C1-4EE7-941D-577B24155876&ext=JPG
fileEntry.toURL():
assets-library://asset/asset.JPG?id=BE3E7B26-51C1-4EE7-941D-577B24155876&ext=JPG
fileEntry.toInternalURL():
cdvfile://localhost/assets-library/asset/asset.JPG?id=BE3E7B26-51C1-4EE7-941D-577B24155876&ext=JPG
Then the File Object:
file.name:
IMG_0028.JPG
file.fullPath:
undefined
So the file is there, an I can touch it, but have no working reference to it.