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

sqlite-cipher - [ERR_FS_FILE_TOO_LARGE]: File size (2708434944) is greater than possible Buffer: 2147483647 bytes #23

Open
umapathyrd opened this issue Aug 31, 2020 · 0 comments

Comments

@umapathyrd
Copy link

Hi,

when we are trying to encrypt/decrypt of sqlite database of size 2GB we are getting the below error. Node module used: sqlite-cipher

1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program");f.arguments=process.argv.slice(2);"undefined"!==typeof module&&(module.exports=f);process.on("uncaughtException",function(a){if(!(a instanceof ka))throw a;});f.inspect=function(){return"[Emscripten Module object]"}}else if(fa)f.print||(f.print=print),"undefined"!=typeof printErr&&(f.printErr=printErr),f.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)";},f.readBinary=function(a){if("function"===
                                                                                                                                                                                                                               ^
RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2708434944) is greater than possible Buffer: 2147483647 bytes
[90m    at tryCreateBuffer (fs.js:317:13)[39m
[90m    at Object.readFileSync (fs.js:353:14)[39m
    at sqlite.encrypt ([4msqlite-cipher[24m\sqlite.js:179:15)
    at Object.<anonymous> (D:\encryptDB.js:5:8)
[90m    at Module._compile (internal/modules/cjs/loader.js:956:30)[39m
[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)[39m
[90m    at Module.load (internal/modules/cjs/loader.js:812:32)[39m
[90m    at Function.Module._load (internal/modules/cjs/loader.js:724:14)[39m
[90m    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)[39m
[90m    at internal/main/run_main_module.js:17:11[39m {
  code: [32m'ERR_FS_FILE_TOO_LARGE'[39m

Any suggestion on how to resolve this problem ?

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

No branches or pull requests

1 participant