Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Indy FTP and large files problem

www.cryer.info
Managed Newsgroup Archive

Indy FTP and large files problem

Subject:Indy FTP and large files problem
Posted by:"RGreen" (rgreen@nospam.kemi.umu.se)
Date:Thu, 18 May 2006 12:07:26

Hello!

Using Delphi 2006 and Indy 10.1.5

In the latests indy versions , the property LargeStream was introduced,
suposely to (better later than never) support the transfer of larger
streams.

I am using the (very simplified) code:

(FTP is  TidFTP and Worker is TIdIOHandlerStack)

try
    Ftp.IoHandler:= TIdIOHandlerStack(Worker);
    if FileIsLargerThanTheSizeOfAndInteger() then
        FTP.IOHandler.LargeStream:= true else
       FTP.IOHandler.LargeStream:= false;
     FTP.Connect();
    if FTP.Connected() then
        FTP.Put(MyFile,SomeName);
finally
    FTP.disconnect();
end;

But I am getting an exception EidIOHandlerRequiresLargeStream when the file
> 2 Gb in size.

What am I doing wrong?

Replies:

www.cryer.info
Managed Newsgroup Archive