How do I get node.js zlib gunzip pipe to work? -


i have large .gz file (roughly 100mb in size), however, when process file using following code, outputted file 256k.

var fs = require('fs'), zlib = require('zlib');  var inp1 = fs.createreadstream('feed.xml.gz'); var out1 = fs.createwritestream('feed.xml');  inp1.pipe(zlib.creategunzip()).pipe(out1); 

the problem seems zlib.creategunzip() pipe.

is there way fix this? i'm trying stream direct internet preferably.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -