user3428422
user3428422

Reputation: 4570

How to get a compressed zip file size in c# (wpf)

Is there anyway of doing this in c#?

I can get the amount of bytes that a zip contains via a filestream but there seems nothing for finding the compressed file size.

Upvotes: 0

Views: 4466

Answers (1)

ElGavilan
ElGavilan

Reputation: 6914

FileInfo f = new FileInfo("yourfile.zip");
long filesize = f.Length; // file size in bytes

Upvotes: 2

Related Questions