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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -