title: How to play audio and video files in web browser?
body: <pre><code>protected void Button2_Click(object sender, EventArgs e)
  {
      UploadLogic bl = new UploadLogic();
      input = ListBox1.SelectedIndex &gt;= 0 ? ListBox1.SelectedItem.ToString() : "";
      DataSet ds = new DataSet();
      ds = bl.Content_details(input);
  
      if (ds.Tables[0].Rows.Count &gt; 0)
      {
          Byte[] bytes = (Byte[])ds.Tables[0].Rows[0].ItemArray.GetValue(3);
          Response.Buffer = true;
  
          Response.Charset = "utf-16";
  
          Response.Cache.SetCacheability(HttpCacheability.NoCache);
  
          Response.ContentEncoding = System.Text.Encoding.GetEncoding("windows-1250");
  
          Response.ContentType = ds.Tables[0].Rows[0].ItemArray.GetValue(2).ToString();
  
          Response.AddHeader("content-disposition", string.Format("File_Path; filename={0}", input));
  
          Response.OutputStream.Write(bytes, 0, input.Length);
          Response.BinaryWrite(bytes);
  
          Response.Flush();
  
          Response.End();
      }
      else
      {
          Label1.Text = "No File Found..!";
      }
  }
  </code></pre>
  
  <p>I wrote this code, but it only downloads the file from the database. If I want to play audio and video, then how can I do it?</p>