Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jun : How to indicate progress when sending file over tcp socket connection-D7/Indy10.

www.cryer.info
Managed Newsgroup Archive

How to indicate progress when sending file over tcp socket connection-D7/Indy10.

Subject:How to indicate progress when sending file over tcp socket connection-D7/Indy10.
Posted by:"Jacques" (jacques.no..@btinternet.com)
Date:Thu, 16 Jun 2005 00:39:57

I want to use the progressbar to indicate how much of a file has been
written to the socket connection, but dont know how to do this. This is the
piece of code i use to send the file:

FStream := TFileStream.Create(fn, fmOpenRead or fmShareDenyWrite);

     try
            IdStream := TIdStreamVCL.Create(fstream);

   try

               form1.tcpclient.IOHandler.Write(IdStream, 0, True);

  finally
                IdStream.Free;
            end;
        finally
            FStream.Free;
        end;
Is there someway i can integrate the progressbar with this?
Thanks

Replies:

www.cryer.info
Managed Newsgroup Archive