A
Ankur
Hi friends,
I am creating a photo sharing website where people can upload and share
photos in ASP.Net 2.0.
Ideally user should upload only image(bmp,jpg,jpeg,png...) files only, which
is a rare case when it comes to hackers and crackers trying to upload
different file format like txt,exe,ppt,rar...
So, I want to validate & ensure that only image file has been uploaded.
Please don't suggest me to check for file extension, if it ends with bmp or
jpg(all these are too kiddish).
I want some suggestion or program(a better option) in VB.Net or C# that
checks image headers or checksum or something similar or some class provided
by microsoft which accomplish the same task.
Below are 2 URLs I located while my course for verifing images:
homepages.ius.edu/rwisman/b481/PP%20lectures/WismanCG24.5.ppt
http://www.mikekunz.com/image_file_header.html
Any help is appreciated.
Thanks
I am creating a photo sharing website where people can upload and share
photos in ASP.Net 2.0.
Ideally user should upload only image(bmp,jpg,jpeg,png...) files only, which
is a rare case when it comes to hackers and crackers trying to upload
different file format like txt,exe,ppt,rar...
So, I want to validate & ensure that only image file has been uploaded.
Please don't suggest me to check for file extension, if it ends with bmp or
jpg(all these are too kiddish).
I want some suggestion or program(a better option) in VB.Net or C# that
checks image headers or checksum or something similar or some class provided
by microsoft which accomplish the same task.
Below are 2 URLs I located while my course for verifing images:
homepages.ius.edu/rwisman/b481/PP%20lectures/WismanCG24.5.ppt
http://www.mikekunz.com/image_file_header.html
Any help is appreciated.
Thanks