INDY9发送tstream
首先都要发送stream.Size, 这是必须的。
// 服务端
AThread.Connection.WriteInteger(stream2.Size);
AThread.Connection.WriteStream(stream2);
// 客户端
IdTCPClient1.WriteInteger(FSendStream.Size);
IdTCPClient1.WriteStream(FSendStream);
原文:http://www.cnblogs.com/hnxxcxg/p/6709150.html