determining file type

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.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top