I am using Delphi 7, Indy components with TCPClient and TCPServer for file transfer.
I transfer various size files. Happily from your answered questions I saw that I have to exclude
and get something like
for large files so they are not written in one chunk. Now that I've left only the
my question is how I can get from there the percentage of the written file to show it on a progress bar on the uploader side, as well how to show a progress bar for the download on the client side.
What I got on the client side is...
FileStream:= TFileStream.Create(fname, fmCreate);
while connected do
ReadStream(FileStream, -1, true);
so, how do I get a progressbar from there?