I am working on a project in C# and I need to know how to validate an image in C# to be of a specific size? 
For example the image to be uploaded must be less than 25Kb.
I am working on a project in C# and I need to know how to validate an image in C# to be of a specific size? 
For example the image to be uploaded must be less than 25Kb.
 
    
     
    
    FileInfo.Length will return the current file size in bytes.
long length = new System.IO.FileInfo(path).Length;
25 Kilobytes (even though your question implicitly asks about Kilobits), is 25000 bytes. Check if less than or greater than that value.
