Image Validations in c#

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

Morten Wennevik [C# MVP]

Hi Sala,

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

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