S
simontown
Unregistered / Unconfirmed
GUEST, unregistred user!
主要代码是:
Client
FileStream := TFileStream.Create(FileName,fmOpenRead);
FileSize := FileStream.Size;
IdTCPClient1.WriteStream(FileStream,True,True,FileSize);
Sever
FileStream := TFileStream.Create(FileName,fmCreate);
AThread.Connection.ReadStream(FileStream,-1,False);
在局域网中传文件,我想做个进度条,但不知道怎么获得发送的流文件大小,请大虾们指教!!!!
谢谢
Client
FileStream := TFileStream.Create(FileName,fmOpenRead);
FileSize := FileStream.Size;
IdTCPClient1.WriteStream(FileStream,True,True,FileSize);
Sever
FileStream := TFileStream.Create(FileName,fmCreate);
AThread.Connection.ReadStream(FileStream,-1,False);
在局域网中传文件,我想做个进度条,但不知道怎么获得发送的流文件大小,请大虾们指教!!!!
谢谢