I have a byte array filled from a file uploaded. But, in another part of the code, I need to know this file type uploaded from the byte[] so I can render the correct content-type to browser!
Thanks!!
Not sure, but maybe you should investigate about magic numbers.
Update: Reading about it, I don't think it's very reliable though.