Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : How to only download a part of remote file via idFTP?

www.cryer.info
Managed Newsgroup Archive

How to only download a part of remote file via idFTP?

Subject:How to only download a part of remote file via idFTP?
Posted by:"Bear" (be..@nobody.com)
Date:Tue, 27 Feb 2007 10:36:39

Hi,

I want to download via multi threads.

Local File Size = Remote File Size
Each download thread only download a Part via idFTP.

But idFTP will use TIdIOHandler.ReadStream:

.......

  finally
    EndWork(wmRead);
    if AStream.Size > AStream.Position then begin
      AStream.Size := AStream.Position;
    end;
    LBuf := nil;
  end;
end;


It always set the Stream Size to the Position.
How to avoid this? Have to comment  if then sentence?
Is there are feature to allow idFTP only download a part of a remote file to
a part of a local file?

Bear

Replies:

www.cryer.info
Managed Newsgroup Archive