I have a large .gz file (roughly about 100Mb in size), however, when I process the file using the following code, the outputted file is only 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 to be with the zlib.createGunzip() pipe.
Is there a way to fix this? I'm trying to stream direct from the internet preferably.