title: Split a byte array into different byte arrays
body: <p>I have a byte array which contains almost 10Kb data.
  I have to take the data from the same array in multiple of 230 bytes at a time.
  I tried different methods but not able to achieve the target.
  Can someone please help me out in this?</p>
  <p>I have tried with below code but not serving my purpose.</p>
  <pre class="lang-cs prettyprint-override"><code>public static string splitArray(byte[] array, int size)
  {
  
      byte[] myBytes = array; // original byte array
      string[] dataArray = new string[230];
  
      string dataArray = null;
      for (var i = 0; i &lt; (float)myBytes.Length / size; i++)
      {
          dataArray = myBytes.Skip(i * size).Take(size).ToString();
          Logger.Info($&quot;Length:{dataArray.Length}&quot;);
      }
  
      return dataArray;
  }
  </code></pre>