Image File Size
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.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

kovanRank #1,453 · 1.1K reputationPosted Jul 19, 2004, 7:56 AM EDT
Carlos SanchezRank #6,113 · 276 reputationPosted Jul 19, 2004, 10:29 AM EDT