I want to check if a file is an Image.So without going to check for extensions.I simply do this
try
{
using (Bitmap test = new Bitmap(Bitmap.FromFile(e.FullPath)))
{
}
//do my processing with image
Console.WriteLine(e.FullPath);
}
catch (Exception error)
{
}
Is this approach correct?Are there any problems associated?