2
Reply

Image File Size

Carlos Sanchez

Carlos Sanchez

Jul 19 2004 10:51 AM
10.2k
How to Get the Size of a Image File? I have a Employees table, and one of the columns store the employee picture. The picture is selected by the user by a OpenFileDialog: OpneFileDialog1_FileOk() { Image pict = new Image(); pict = Image.FromFile(OpneFileDialog1.FileName); //Uploading to the DataBase } Before Uploading to the DataBase a want to know whether the File is less than 100 KBytes Any Idea? Thanx in advance.

Answers (2)