itinance / itinance/react-native-fs
readFile() returns an overly long base64 string for videoFiles.
Open
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
`const base64video = RNFS.readFile(videoUri, 'base64').then(res=> res).catch(err=>err)`
and when I log it, it goes super long that I can't even go to the starting point of it in my console so I just get its length. Turns out that the length of the b64 string for a .50 sec video is `600,000+` , 3secs video is `4M+`, and so on...
is this normal for this library to output such lengthy base64 string for just a short videos?
Just to add, the video size before converting is usually around 1mb to 3mb only
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.