Reputation: 3715
There used to be a convenient static method in previous version of Ionic.Zip.Reduced that allowed to create a ZIP file from a byte array:
public static ZipFile Read(byte[] buffer)
My code looked something like this:
byte[] data = GetMyData();
ZipFile zip = ZipFile.Read(data);
However, this method is no longer available in the most recent version. Why is that?
I came up with the following code which I believe is the equivalent:
byte[] data = GetMyData();
return ZipFile.Read(new MemoryStream(data));
Is the new code equivalent?
Upvotes: 2
Views: 1143
Reputation: 12561
'Why' is more a question for the DotNetZip team. I have a few ideas, though.
Upvotes: 2