Open veeyka opened 1 year ago
Not save file in local storage, save to local devices. Check my project(booknex) where I create this functionality
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 .
This issue is stale because it has been open for 90 days with no activity.
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
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