How to access image from native URI (assets-library) in Cordova for iOS

后端 未结 2 1244
無奈伤痛
無奈伤痛 2020-12-31 05:32

I have a Cordova/PhoneGap app which uses the camera to capture a picture. I need to access this picture to send to my server.

For Android I simply use $cordova

2条回答
  •  庸人自扰
    2020-12-31 06:20

    I had success with a simple substitution, like this

    fullPath = fullPath.replace("assets-library://", "cdvfile://localhost/assets-library/")
    

    It works in iOS 9.3

提交回复
热议问题