title: How do I Get Height & Width from an Uploaded image file
body: <p>I am using ASP.NET 2.0. I am trying to get the height &amp; width of an image file I uploaded using the FileUpload control. Once uploaded, the image is kept in the db, <strong>not</strong> the file system. It seems I should be able to use something like the following code to do this but I can't get it to work. </p>
  
  <pre><code>Dim strm As Stream = oPostedFile.InputStream
  dim i as image
  i = System.Drawing.Image.FromStream(strm)
  </code></pre>