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)
usingICSharpCode.SharpZipLib.Core;
usingICSharpCode.SharpZipLib.GZip;
using (GZipInputStreamgzipStream=newGZipInputStream(fs))
{
// operate very well
}in NodeJs
varfs=require('fs');varzlib=require("zlib");varfile=fs.readFileSync(sFileFullPath);varextractBin=zlib.gunzipSync(file);console.log("Compressed buffer size"+file.length);// 134079console.log("Uncompressed buffer size"+extractBin.length);// 14Why it did reduce the size?
Here's the file in question.
http://static.kafra.kr/file/patch.rgz
I'm sorry bad English.
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)
in NodeJs
Why it did reduce the size?
Here's the file in question.
http://static.kafra.kr/file/patch.rgz
I'm sorry bad English.