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 analysisByte 1 [Signature should be an open brace ({)]: { File 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 64 65 66 66 {\rtf1\ansi\deff Base-64 conversione1xydGYxXGFuc2lcZGVmZjAge1xmb250dGJsIHtcZjAgQ291cmllcjt9fQ0Ke1xjb2xvcnRi 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); }