RTFThis is a page for RTF file analysis (Header). Try sample file: Try an example
The RTF file has a well defined header. |
File contents analysisFile: /log/helloworld.rtfBytes 1-3 [Signature should be %PDF-]: {\rtfFile signature analysis (Header analysis)Additional scanning signature analysisPossible: [RTF files (\fonttbl - Font table), sig: 5C666F6E7474626C] Count: 1 File hex characters[00000000] 7B 5C 72 74 66 0D 0A 7B 5C 66 6F 6E 74 74 62 6C {\rtf..{\fonttbl Base-64 conversione1xydGYNCntcZm9udHRibCB7XGYwIFRpbWVzIE5ldyBSb21hbjt9fQ0KXGYwXGZzNjAgSGVs Presentation |
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); }