Reading stream twice?
<p>When I have uploaded an image from my website I need to do 2 things: </p>

<ol>
<li>read the image dimensions</li>
<li>save the image to the database</li>
</ol>

<p>the first thing I do is reading the image stream into an Image object, like so:</p>

<pre><code>var file = Request.Files["logo"];

Image FullsizeImage = Image.FromStream(file.InputStream);
</code></pre>

<p>the next thing I do is to save the "file" object to the database (LINQ to SQL). BUT, when I try to save the image to database, the stream from the file has it's postion at the end of the stream, and it seems no data is present.</p>

<p>I know I should somwhow reset the stream and put it back into position 0, but how do I do that the most effiecent and correct way ?</p>
