Image size checking
-
Hi there. I am uploading images to my website and them writeing it into a DB. I want to do validation on the image that i upload. At the moment i am checking the size(bytes) of the image. what i also need to do, is check the Physical lenght of the image. Can anyone help me with this? Thanks
-
Hi there. I am uploading images to my website and them writeing it into a DB. I want to do validation on the image that i upload. At the moment i am checking the size(bytes) of the image. what i also need to do, is check the Physical lenght of the image. Can anyone help me with this? Thanks
if(fileUpload1.HasFile == true) { blah blah... } Hope it helps
-
if(fileUpload1.HasFile == true) { blah blah... } Hope it helps
Try this.
Sub submit(Sender as Object, e as EventArgs) fname.InnerHtml=MyFile.PostedFile.FileName clength.InnerHtml=MyFile.PostedFile.ContentLength End Sub Select file to upload to server: FileName: ContentLength: bytes
Bajrang Singh Using .net 2.0 (VS2005)