title: how to show image from database in asp:image with linq?
body: <p>This is my table in database : </p>
  
  <p><img src="https://i.stack.imgur.com/00UNz.jpg" alt="enter image description here"></p>
  
  <p>And I read the database like :    </p>
  
  <pre><code>DataClassesDataContext db = new DataClassesDataContext();
  usertable thisuser = db.usertables.First(p =&gt; p.username == User.Identity.Name);
  </code></pre>
  
  <p>So, <code>thisuser.picture</code> is a handle to the image. But how can I show it in asp:image control on my page ?</p>
  
  <p><strong>Edit</strong>
  I save the picture with this code :</p>
  
  <pre><code>DataClassesDataContext db = new DataClassesDataContext();
  usertable thisuser = db.usertables.First(p =&gt; p.username == User.Identity.Name);
  byte[] filebyte = FileUpload1.FileBytes;
  System.Data.Linq.Binary fileBinary = new System.Data.Linq.Binary(filebyte);
  thisuser.picture = fileBinary;
  db.SubmitChanges();
  </code></pre>
  
  <p>is there something wrong ?</p>