itinance / itinance/react-native-fs

upload photos from cameraroll

Open
#896 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

IOS only.
1. Get photo from CameraRoll on IOS with id:
ph://CC95F08C-88C3-4012-9D6D-64A413D254B3/L0/001
2. Converted it to:
assets-library://asset/asset.HEIC?id=CC95F08C-88C3-4012-9D6D-64A413D254B3&ext=HEIC
3. Get error after readFile:
[Error: The file “asset.HEIC?id=CC95F08C-88C3-4012-9D6D-64A413D254B3&ext=HEIC” couldn’t be opened because there is no such file.]

RNFS.readFile(
'assets-library://asset/asset.HEIC?id=CC95F08C-88C3-4012-9D6D-64A413D254B3&ext=HEIC',
'base64' ).then((data) => console.log('data', data);).catch((err) => console.log( err));
My question is: How can i read file from CameraRoll on IOS?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.