I have this code i am using to read uploaded file, but i need to get size of image instead but not sure what code can i use
HttpFileCollection collection = _cont
HttpPostedFile file = null;
file = Request.Files[0]
if (file != null && file.ContentLength > 0)
{
System.IO.Stream fileStream = file.InputStream;
fileStream.Position = 0;
byte[] fileContents = new byte[file.ContentLength];
fileStream.Read(fileContents, 0, file.ContentLength);
System.Drawing.Image image = System.Drawing.Image.FromStream(new System.IO.MemoryStream(fileContents));
image.Height.ToString();
}