DOCXThis is a page for DOCX file analysis (Header). Try sample file: Try an exampleThe DOCX file has a well defined header, and uses a PKZIP header format. |
File contents analysisStarting tag (should be 0x504b0304): 504B0304 File signature analysis (Header analysis)ZIP file (Starts with 0x50 0x04B)Additional scanning signature analysisPossible: [MBR Magic Number, sig: 55AA] Count: 1 File hex characters[00000000] 50 4B 03 04 14 00 06 00 08 00 00 00 21 00 BD 81 PK..........!... Base-64 conversionUEsDBBQABgAIAAAAIQC9gdIqwAEAAJ8HAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIo |
Sample code
public string getRtf(byte[] b) { string TextBox1 = ""; TextBox1 += "Byte 1 [Signature should be an open brace ({)]: " + (char)b[0] + "<br/>"; TextBox1 += "Byte 2-5 [Signature should be \rtf]: " + (char)b[1] + (char)b[2] + (char)b[3] + (char)b[4] + "<br/>"; TextBox1 += "Byte 6 [Major Version]: " + (char)b[5] + "<br/>"; TextBox1 += "Byte 7-10 [\\ansi]: " + (char)b[6] + (char)b[7] + (char)b[8] + (char)b[9] +"<br/>"; return (TextBox1); }