Closed
Description
why did incorrect operate zlib.ungzip?
It is operates in C#.net
but don't operate in nodejs.(windows7, node ver. 5.2.0)
Most of the well, but a problem appears in some of the files.
in C# (with ICSharpCode)
using ICSharpCode.SharpZipLib.Core;
using ICSharpCode.SharpZipLib.GZip;
using (GZipInputStream gzipStream = new GZipInputStream(fs))
{
// operate very well
}
in NodeJs
var fs = require('fs');
var zlib = require("zlib");
var file = fs.readFileSync(sFileFullPath);
var extractBin = zlib.gunzipSync(file);
console.log("Compressed buffer size" + file.length); // 134079
console.log("Uncompressed buffer size" + extractBin.length); // 14
Why it did reduce the size?
Here's the file in question.
http://static.kafra.kr/file/patch.rgz
I'm sorry bad English.