keyiis
keyiis
@dduponchel sorry it's my mistake,i already modify title and code :)
@dduponchel the `dbFilePath` is path of sqlite database file,eg `d:\db\test.db`
@dduponchel if i use zlib,i get same error `fs.createReadStream(dbFilePath).pipe(zlib.createGzip()).pipe(fs.createWriteStream(dbFilePath+'.gz'));`
@dduponchel i changed to `generateNodeStream `,but get same error my code ``` let zip = new JSZip(); zip.file(dbFilePath); zip.generateNodeStream({ type: 'nodebuffer', streamFiles: true }) .pipe(fs.createWriteStream('out.zip')) .on('finish', function () { //...
@dduponchel i can get source file data ``` var rs = fs.createReadStream(dbFilePath); rs.on('data', (data:any)=>{ console.log(data); }).on('close', function() { console.log('close'); }); ``` 
@dduponchel thanks reply! i'm a little confused,i already give file path to jszip,it should read file through the path automatically?
@haydonduan i give up jszip
@citycide i tried,but not work,i hope sql.js can give a offical example in document.
@iPotaje @domasx2 I copy [code](https://gist.github.com/iPotaje/89f48328c682b8a4f6f0b6e3874a6902) to my project,but tip error: ``` app.js:90190 EXCEPTION: require(...).verbose is not a functionErrorHandler.handleError @ app.js:90190(anonymous function) @ app.js:67785ZoneDelegate.invoke @ polyfills.js:16463onInvoke @ app.js:57711ZoneDelegate.invoke @ polyfills.js:16462Zone.run @...