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

Cordova FilePath returns Invalid column _data for image uri from contacts cordova plugin #29

Open
RishabAkalankan opened this issue Jun 29, 2018 · 8 comments

Comments

@RishabAkalankan
Copy link

RishabAkalankan commented Jun 29, 2018

I'm trying to get the file path from an URI returned by the cordova contacts plugin using the resolveNativePath from filepath plugin.

contactsImageURI = contact.photo[0].value;
contactsImageURI = content://com.android.contacts/contacts/XXXX/photo;
this.filePath.resolveNativePath((contactsImageURI)).then(()=> {
console.log('success');
}).catch((error: any)) => {
console.log(error);
});
// output Invalid column _data

can anyone help me out

@ChrizC
Copy link
Contributor

ChrizC commented Aug 31, 2018

Hi @RishabAkalankan - is this still happening?

@manishb-socialcurry
Copy link

It is happening with me too. I just downloaded your plugin and used it and got the same error: "column '_data' does not exist". Btw, I googled and found that it is since Nougat that they have changed things and even those using Java API are facing this issue. See: https://stackoverflow.com/questions/42508383/illegalargumentexception-column-data-does-not-exist

Could you please fix it?

@ayalpani
Copy link

ayalpani commented Oct 18, 2018

Hi. I have the same issue with Telegram images:

content://org.telegram.messenger.provider/media/Telegram/Telegram%20Images/246936588_94670.jpg

=> "column '_data' does not exist"

Phone: Huawei P9
Version of plugin: 1.4.2

Does not work with files from Telegram and Whatsapp. Other Apps (Google Drive, Huawei Photo App) do work.

@Eugenizer
Copy link

@ChrizC I have same problem as @RishabAkalankan. I take contact by cordova contacts plugin, get image url in format "content://com.android.contacts/contacts/:contactId/photo", try to convert, but always get as a result "Invalid column _data"

@cromdev
Copy link

cromdev commented Apr 15, 2019

Happens for me as well, using it wrapped with Ionic, but it down to the same error.

@marvin-SL
Copy link

marvin-SL commented Apr 29, 2019

same for me with whatsapp

@Alfre90
Copy link

Alfre90 commented Feb 19, 2020

Any update on this issue?????

@marvin-SL
Copy link

marvin-SL commented Feb 20, 2020

Any update on this issue?????

Hello, I did a PR a while ago to fix this #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

8 participants