(Sloved By Me) Ionic 3 problem with ImagePicker

Hello Everyone,

I can’t read image after selected

he is show me this error

 http://localhost:8080/: Line 0 : Not allowed to load local resource: 

Can you please help me

Thank you

is that a base64 image??

getImage() {
    let options = {
      title: "Select picture",
      message: 'Select min 1',
      outType: 0,
      maximumImagesCount: 1,
    let that = this;
    this.imagePicker.getPictures(options).then((results) => {
      for (var i = 0; i < results.length; i++) {
        console.log('Image URI: ' + normalizeURL(results[i]));
        that.image = normalizeURL(results[i]);
    }, (err) => {

are you using livereload??

No i use my phone for testing

are you using Android or ios??

1 Like

i’m usign android platform

What is your ionic info output?

Is this Ionic Native?

Yeah is ionic native

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.2.0
    Cordova Platforms  : android 7.0.0
    Ionic Framework    : ionic-angular 3.9.2


    Node : v8.11.1
    npm  : 6.0.1
    OS   : Windows 10

Environment Variables:

    ANDROID_HOME : not set


    backend : pro

Update that to the current version please, its ionic info output will give other important information.

i upgrade ionic but not working
not showing picture after selected

Post your now updated ionic info again please.

Hello i fixed with changing imagePicker and i use camera

Thank you anyway i will close topics Now