The Dashboard Code from LabVIEW doesnt help at all

, ive read through the whole thing countless times, the PCVideoServer.cpp I have also read through that code,infact I am sitting right in front of it lol, that is why there is a if(readBytes > 1000) code, it makes sure I am not sending the header or imageSize as parameters to the MemoryStream, actually after much testing, i got the image to display at about .01 fps rofl, it updates the image irregularly and it is lagging BEYONG belief, here is my current code for that image processing:
Code:
if (netStream.DataAvailable)
{
image.indicator.Text = "Data Available";
//image.videoStream.Image = Image.FromStream(netStream);
data = new byte[serverClient.ReceiveBufferSize];
//bytesRead = netStream.Read(data, 0, serverClient.ReceiveBufferSize);
bytesRead = client.Receive(data, 0, serverClient.ReceiveBufferSize, 0);
//tw.WriteLine(DateTime.Now + " " + bytesRead.ToString());
if (bytesRead > 1000)
{
try
{
MemoryStream ms = new MemoryStream(data);
image.videoStream.Image = Image.FromStream(ms, false, true);
}
catch (Exception ex)
{
tw.WriteLine(DateTime.Now + ex.ToString());
}
}
}