Image Validations in c#

  • Thread starter Thread starter Sala
  • Start date Start date
S

Sala

I have 5 attachement files and i have to check whether all
files are image files if anyone of a file is not an image file then i
have to display alert message on webform..
 
Hi Sala,

You can try to load them into a Bitmap object. If it succeeds, it is a
known image format.
 
Back
Top