-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
Node's zlib.ungzip does not support concatenated files #4306
Copy link
Copy link
Closed
Labels
zlibIssues and PRs related to the zlib subsystem.Issues and PRs related to the zlib subsystem.
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); // 14Why it did reduce the size?
Here's the file in question.
http://static.kafra.kr/file/patch.rgz
I'm sorry bad English.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
zlibIssues and PRs related to the zlib subsystem.Issues and PRs related to the zlib subsystem.