title: How to convert the base64 data to video
body: <p>I am recording the user video and sending the data to the controller. The controller will receive the base64 data as a string. Then i am converting the base64 string to bytes like:</p>
  
  <pre><code>public ActionResult Content(string data)
  {
      byte[] ret = System.Text.Encoding.Unicode.GetBytes(data);         
      FileInfo fil = new FileInfo("D://test.mp4");
      MemoryStream stream = new MemoryStream(ret);
      var getdata = stream.GetBuffer();
      using (Stream sw = fil.OpenWrite())
        {
           sw.Write(getdata, 0, getdata.Length);
           sw.Close();
        }
  }
  </code></pre>
  
  <p>The video is downloading but the video is not playing the content. Can any body tell me what's the reason.</p>