Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
16 Mar 2013S. M. Ahasan Habib
you can remove empty array. Your code should look like byte[] MainArray = new byte[4096]; byte[] String = Encoding.ASCII.GetBytes("hello world"); Array.Copy(String, 0, MainArray, 0, String.Length); MainArray = MainArray.Where(v => v >...
Either don't send the large array - use one the size of the data you want to transfer, or prefix your actual data bytes with the number of relevant ones and only convert those at the other end.