Skip to content

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

@umapathyrd

Description

@umapathyrd

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions