Reputation: 10507
I've noticed that each time I run the same file through GZipStream
the file size differs. When I look at the file through Windows explorer, the size
is different, but the Size on disk
is always the same. Is this expected behaviour.
Upvotes: 1
Views: 220
Reputation: 612
Is your file small? Usually with smaller files the OS may add some padding to the file to make it fill a cluster/block so you'll notice the size may be slightly different. This is much more noticeable on smaller files than larger ones.
For an explanation on the difference between size and size on disk check this link out.
http://freewindowsvistatutorials.com/differencesBetweenFileSizeVsSizeOnDiskInWindows7VistaXP.php
Upvotes: 1