Unable to load image when selected from the gallery on Android 4.4 (KitKat) using PhoneGap Camera Plugin

后端 未结 6 434
小蘑菇
小蘑菇 2020-12-01 06:15

I\'m trying to set the source of an img tag in my app based on the image chosen from the device image gallery using the PhoneGap/Cordova Camera Plugin.

It has worked

6条回答
  •  日久生厌
    2020-12-01 06:52

    A kind of really-very-dirty workaround works for me while this bug is fixed. Use in case of extreme necessity :)

    if (imageURI.substring(0,21)=="content://com.android") {
      photo_split=imageURI.split("%3A");
      imageURI="content://media/external/images/media/"+photo_split[1];
    }
    

提交回复
热议问题