首页 > 代码库 > INDY9发送tstream

INDY9发送tstream

INDY9发送tstream

首先都要发送stream.Size, 这是必须的。

// 服务端

AThread.Connection.WriteInteger(stream2.Size);

AThread.Connection.WriteStream(stream2);

// 客户端

IdTCPClient1.WriteInteger(FSendStream.Size);
IdTCPClient1.WriteStream(FSendStream);

INDY9发送tstream