How to check File Size or dimension?
<pre><code> var dlg = new Microsoft.Win32.OpenFileDialog();
        dlg.Filter = "(*.JPG;*.GIF)|*.JPG;*.GIF";
        dlg.ShowDialog();
        if (string.IsNullOrEmpty(dlg.FileName)) return;
        var fs = new FileStream(dlg.FileName, FileMode.Open, FileAccess.Read);
        var data = new byte[fs.Length];
        fs.Read(data, 0, System.Convert.ToInt32(fs.Length));
        fs.Close();
</code></pre>

<p>I am using this code but not find how to find size or dimension of image?</p>
