I'm trying to sniff the type of a file, based on the magic numbers. After some googling I've found the following information:
Primary association: Windows Media
Company: Microsoft Corporation
File classification: Audio
Mime type: audio/x-ms-wma, video/x-ms-asf
Identifying characters Hex: 30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C
Primary association: Windows Media File
Company: Microsoft Corporation
Mime type: video/x-ms-wmv
Identifying characters Hex: 30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C
These magic numbers are used by both audio and video. How can I detect if I have the one or the other. Note: I can't use an extension, I only have a System.IO.Stream
with bytes.