Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thumbnailPath on android is not accessible - content://com.android.contacts/contacts/4/photo #223

Closed
EyalSi opened this issue Oct 17, 2017 · 9 comments

Comments

@EyalSi
Copy link

EyalSi commented Oct 17, 2017

I'm trying to copy the thumbnail received on Android, using RNFS (react-native-fs)
copyFile(src, dst) or RNFetchBlob (react-native-fetch-blob) fs.cp(src, dst), doesn't succeed - "no such file or directory".
Anyone had a success in copying such content:// files?
Thanks,

@EyalSi
Copy link
Author

EyalSi commented Nov 23, 2017

Is nobody using the thumbnails on android?

@morenoh149
Copy link
Owner

do you know if where you're using the uri has the same contentresolver authority? https://developer.android.com/reference/android/content/ContentUris.html Maybe the authority is com.android.contacts and then your module is using a different authority?

@EyalSi
Copy link
Author

EyalSi commented Jan 1, 2018

@morenoh149 how do I set the authority? I'm using react-native-contacts and than trying to read the image using RNFS. I'm not setting the authority in either...

@morenoh149
Copy link
Owner

Right those may be two different authorities. Basically the uri 's generated by different authorities are not compatible. Don't think you can achieve your goal with that approach.

@EyalSi
Copy link
Author

EyalSi commented Jan 11, 2018

There is now a solution for this problem in react-native-fs. Enabling access and copy content:// files -itinance/react-native-fs#395

@morenoh149
Copy link
Owner

Is your issue resolved?

@github-actions
Copy link

This issue is stale, please provide more information about the status

@JeanPSF
Copy link

JeanPSF commented May 5, 2020

Updates? I am with the same problem.

@morenoh149
Copy link
Owner

No updates. Did you try passing the authority between the libraries? For better help open a fresh issue referencing this and any other resources. Also include a minimal reproduction and what you tried.

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

No branches or pull requests

3 participants