title: Play AVI file from byte array in ASP.Net
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2270151/is-it-possible-to-use-data-uris-in-video-and-audio-tags">Is it possible to use data URIs in video and audio tags?</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible to play video files which are stored in database as easy as displaying an image from db?</p>
  
  <p>To display a image from db, this is what I use;</p>
  
  <p>aspx file</p>
  
  <pre><code>&lt;asp:Image ID="PicImage" runat="server" /&gt;
  </code></pre>
  
  <p>cs file</p>
  
  <pre><code>PicImage.Attributes.Add("src", "data:image/png;base64," + Convert.ToBase64String(PictureByteArray));
  </code></pre>
  
  <p>do you think, can I use these things below <strong>without creating the file in the server</strong> first?</p>
  
  <pre><code>&lt;embed src="video.avi" /&gt;
  &lt;img dynsrc="video.avi" /&gt;
  &lt;object data="video.avi" type="video/avi" /&gt;
  </code></pre>
  
  <p>How can I achieve this?</p>
  
  <p>I know Silverlight doesn't play .avi files, but only wmv.</p>