Image File Size

Jul 19 2004 10:44 AM
How to Get the Size of a Image File? I have 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.

Brought to you by: