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

base64 - big epub files problem #84

Open
veeyka opened this issue Apr 2, 2023 · 5 comments
Open

base64 - big epub files problem #84

veeyka opened this issue Apr 2, 2023 · 5 comments
Labels

Comments

@veeyka
Copy link

veeyka commented Apr 2, 2023

hi . when i open a epub files which is more than 200KB with base64 on localstorage it throws an erro .
Error: Couldn't download book
what can i do for epub files with 5 or 6 MB or larger . thanks

@kravchenko-anton
Copy link

Not save file in local storage, save to local devices. Check my project(booknex) where I create this functionality

@veeyka
Copy link
Author

veeyka commented Apr 2, 2023

hi dude . thanks for respond . in saving to this location . its my destination.
fs.DocumentDirectoryPath+"/epub/epub2.epub"

i saved file in DocumentDirectoryPath with react-native-fs .
and i read file with this code .
RNFetchBlob.fs.readFile(RNFetchBlob.fs.dirs.DocumentDir+"/epub/epub2.epub","base64").then(data=> with rn-fetch-blob
could you please tell me more about this . sorry im new and i dont know where is local devices .

Copy link

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Mar 13, 2024
@aliMurtaja
Copy link

aliMurtaja commented Oct 21, 2024

I am having same problem, I did this

function onPressLearnMore() {

RNFS.readFile(RNFS.ExternalStorageDirectoryPath+ "/clinic/example.epub" , 'base64').then((res)=>{
  console.log(`FILE WRITTEN! ${res}`)
  setBasesf(res)
}).catch(err=> console.log(err))

}

But didn't work

@aliMurtaja
Copy link

aliMurtaja commented Oct 23, 2024

booknex

hello @kravchenko-anton

I am having same problem, using base64, application is very slow, when I swipes to next page, it takes around 2min to navigate, is there any solution ?

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

No branches or pull requests

3 participants