itinance / itinance/react-native-fs

readFile() returns an overly long base64 string for videoFiles.

Open
#1,135 4 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.