determining file type

  • Thread starter Thread starter Sirin Azazi
  • Start date Start date
S

Sirin Azazi

I opened an image file (bmp, jpeg etc) using FileOpenDialog and getting its
resolution, height and width. Now I want to get type of the file (not
looking at the extension, but which is kept inthe header pf the file). But i
couldn't find a method to directly get it by .NET command.
Do I have to use some APIs? or do you know a method to find out the file
type / format??
Thanks.
 
Hi,

If you know the format's header structure you can read the correct amount of
bytes and recreate it in memory
 
Back
Top