G
Guest
I am trying to send a image from PC to PPC by using socket and BinaryWriter
and BinaryReader. The coding is as below:
PC Server:
writer.Write(byteArray.Length);
writer.Write(byteArray);
PPC Client:
int len = reader.ReadInt32();
byte[] Img = new byte[len];
if (len != 0) {
img = reader.ReadBytes(len);
}
The above method work perfectly in PC to PC transmission, but not work for
PC to PCC. Only 32715 Bytes (around 32KB) received by the PPC client, but the
actual size of the image being sent is for example 700KB. What's wrong for
the different behavior for the same coding in PC and PPC? Does anyone have
any idea of this problem?
and BinaryReader. The coding is as below:
PC Server:
writer.Write(byteArray.Length);
writer.Write(byteArray);
PPC Client:
int len = reader.ReadInt32();
byte[] Img = new byte[len];
if (len != 0) {
img = reader.ReadBytes(len);
}
The above method work perfectly in PC to PC transmission, but not work for
PC to PCC. Only 32715 Bytes (around 32KB) received by the PPC client, but the
actual size of the image being sent is for example 700KB. What's wrong for
the different behavior for the same coding in PC and PPC? Does anyone have
any idea of this problem?