GZip File Contents Analysis[Back] This is a page for GZip file analysis (Header). Try sample file: Try an exampleTry your ownOr enter your own URL to analyse the first six sectors of the file: The RTF file has a well defined header. |
File contents analysisFile: tunnelled.txt.gzStarting tag (should be 0x1F 8B 08): 1F8B08File signature analysis (Header analysis)GZip file (Starts with 0x1F 0x8B 0x08)Additional scanning signature analysisPossible: [Gzip, sig: 1F8B08] Count: 1 File hex characters[00000000] 1F 8B 08 08 CA D6 B7 50 00 0B 74 75 6E 6E 65 6C .......P..tunnel Base-64 conversionH4sICMrWt1AAC3R1bm5lbGxlZC50eHQAddHdisIwEAXge8F3GHqvdf3DsrEiiuhFsdD6ALHOrpE0Kc1UfHxjRSym3iXhO2cGwha3XMIVSyO0mns//YEHqDJ9Eup/7lX015t5i7DbYZhXkpMuzeNiquMFMwrTSimUeIJCl2SY/3q3hPBGYcQpOwOdsQZAuj7TK8WLQoqMkx3dZ36dsElBmIfpKoYgGP02CAgDu2gZJ8yvSZMOh58ySbYtbjx2Krdp6lQe1pZOJ05n5NLnog6N9/Golc6CT7qxpdCDNSfe2j34ElhpRaWW74zf/KM7qRhtr9kBAAA=H4sICMrWt1AAC3R1bm5lbGxlZC50eHQAddHdisIwEAXge8F3GHqvdf3DsrEiiuhFsdD6ALHO Decoded
|
Sample code
public string readfileZIP(string fname) { byte[] buffer = new byte[999999]; string s = "", responseFromServer = ""; int n; FileStream sourceFile = System.IO.File.OpenRead(fname); GZipStream input = new GZipStream(sourceFile, CompressionMode.Decompress, false); do { n = input.Read(buffer, 0, buffer.Length); if (n != 0) { System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); string str = enc.GetString(buffer); responseFromServer += str; } } while (n > 0); return (responseFromServer); sourceFile.Close(); input.Close(); }