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

My HTML document is not linking to my CSS stylesheet properly -

php array slice every 2th rule -

node.js - Sending sockets to client side, Error: Converting circular structure to JSON -