Image to memory stream, based on location
<p>I have an image column in bytes in DB &amp; location (which stores the path of the image),
if the path is empty i used image column, if the path is not empty, i  load the image to a byte array and return the image as Memory stream either from file path or direct byte image column.</p>

<pre><code>//query
select image,filepath from tablename;
byte[]  Image = { };
if(file path is not empty)
{
 System.Net.WebClient Client = new System.Net.WebClient(); 
 Image = Client.DownloadData("Path of the image-http://....gif");
}
else
{
Image= datareader.GetOrdinal("image"); 
}
</code></pre>

<p>How do i assign a byte image to memory stream???</p>
