Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Error: column '_data' does not exist #49

Open
marvin-SL opened this issue Apr 30, 2019 · 8 comments
Open

Error: column '_data' does not exist #49

marvin-SL opened this issue Apr 30, 2019 · 8 comments

Comments

@marvin-SL
Copy link

marvin-SL commented Apr 30, 2019

Hello,
I'm sharing file from other apps to my cordova app.
When I share from explorer app, i've got the file uri such as :
file:///sdcard/Audio/SoundRecorder/2019-03-04%2019-36-03.aac

but when I share from 3rd party app (whatsapp in my example), I don't receive a file uri :
content://com.whatsapp.provider.media/item/100492 and then i got “column ‘_data’ does not exist”

    this.filePath.resolveNativePath(receivedFile).then((rslt) => {
          console.log('reslt');
        }).catch((error) => { console.log("error", error) }); //error column '_data' does not exist

ionic info

Ionic:

   ionic (Ionic CLI)  : 4.8.0
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.8

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 6.3.0, browser 5.0.3, ios 4.5.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 1.2.1

System:

   Android SDK Tools : 26.1.1 
   NodeJS            : v8.11.3 
   npm               : 5.6.0
   OS                : Linux 4.15


Can you help me ?

thanks

@marvin-SL marvin-SL reopened this Apr 30, 2019
@marvin-SL
Copy link
Author

marvin-SL commented May 24, 2019

I did a pull request to fix this #53

@mpadmaraj
Copy link

mpadmaraj commented Jun 1, 2019

@marvin-SL thanks a lot! I had to add <framework src="commons-io:commons-io:2.4" /> in the plugin.xml to make it work though.

@marvin-SL
Copy link
Author

marvin-SL commented Jun 4, 2019

Thank you @mpadmaraj ! I will add it to the PR later this day

Edit:Added !

@adityamaple1989
Copy link

@marvin-SL did you find any solution,can you please tell me I am also facing same situation,please reply

@marvin-SL
Copy link
Author

@marvin-SL did you find any solution,can you please tell me I am also facing same situation,please reply

Hello, yes here #53

@adityamaple1989
Copy link

@marvin-SL Oh thank you so much for your reply,
I am getting FileNotFoundException in below line
context.getContentResolver().openInputStream(uri),I have already imported files,but I am getting the error

@adityamaple1989
Copy link

@marvin-SL ,I am also getting this error,When I shared the from one third party app to my ionic app,i.e
Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference

@gaurav112
Copy link

When do we see a merge for the pr #53 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants