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/adc9798.rtfBytes 1-3 [Signature should be %PDF-]: {\rtfFile signature analysis (Header analysis)RTF file (Starts with {\rtf})Additional scanning signature analysisPossible: [RTF file, sig: 7B5C72746631] Count: 1 File hex characters[00000000] 7B 5C 72 74 66 31 5C 61 6E 73 69 5C 61 6E 73 69 {\rtf1\ansi\ansi Base-64 conversione1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcdWMxIFxkZWZmMFxkZWZsYW5nMTAzM1xkZWZsYW5n 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); }