MIDThis is a page for MIDI file analysis. Try an exampleWhat are we looking for?For a MIDI file, we look for the byte sequence 4D 54 68 64 or MThd |
File contents analysisFile signature analysis (Header analysis)Additional scanning signature analysisFile hex characters[00000000] 3C 21 64 6F 63 74 79 70 65 20 68 74 6D 6C 3E 0A <!doctype.html>. Base-64 conversionPCFkb2N0eXBlIGh0bWw+CjxodG1sIGRhdGEtYWRibG9ja2tleT0iTUZ3d0RRWUpLb1pJaHZj |
Sample code
public string getTif(System.IO.Stream file) { string TextBox1 = ""; byte[] b = ReadFully(file, file.Length); TextBox1 = "Starting tag (should be II - Big Indian): " + (char)b[0] + (char)b[1] + "<br/>"; TextBox1 += "Version: " + Global.intToHex(b[2]) + "<br/>"; return (TextBox1); }