title: C# convert from uint[] to byte[]
body: <p>This might be a simple one, but I can't seem to find an easy way to do it. I need to save an array of 84 uint's into an SQL database's BINARY field. So I'm using the following lines in my C# ASP.NET project:</p>
  
  <pre><code>//This is what I have
  uint[] uintArray;
  
  //I need to convert from uint[] to byte[]
  byte[] byteArray = ???
  
  cmd.Parameters.Add("@myBindaryData", SqlDbType.Binary).Value = byteArray;
  </code></pre>
  
  <p>So how do you convert from uint[] to byte[]?</p>