title: Read WMF image from SQL Server
body: <p>I am using a SqlDataReader and I am trying to read from a table I converted from an Access file, and is in SQL Server 2008.</p>
  
  <p>The datatype is now a varbinary(max).</p>
  
  <p>How do I convert this, so I can have it as System.Drawing.Image?</p>
  
  <p>It is a Windows MetaFile and I want to convert it to a PNG or GIF and save it to the filesystem.</p>
  
  <p>It appears this won't be correct as I get an error that it can't convert to Image.</p>
  
  <pre><code>System.Drawing.Image LocationImage = sdr.GetSqlBinary(2)
  </code></pre>
  
  <p>Thank you.</p>