Hello,
I've a C# problem. I need to get and check the MIME type from a file without tacking care on is extension (because everyone can change it). I need to be sure that the file i've, is an audio file, such as a mp3 for exemple.
How can I do that ?
Thanks.
Upendra Pratap ShahiPosted Aug 10, 2015, 12:50 AM
Jignesh TrivediPosted Aug 9, 2015, 11:58 PM
Hi,
from the file signature you can know the type of file.
Please refer below link, it might help you
http://refactoringaspnet.blogspot.in/2008/11/how-to-get-content-type-mimetype-of.html
http://www.garykessler.net/library/file_sigs.html
Manoj BhoirPosted Aug 8, 2015, 11:07 AM