How to detect if byte array already Zipped?

Aug 23, 2012 at 5:13 PM

My .NET application read fields from database, decompress them (if need) and save to disk.

How  I can check if this byte array was zipped and can be unzipped? 

Probably it is possible to check first bytes? 

 

Thnx.