Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: TIdFTP: Can not resume file more 2 GB
| Subject: | Re: TIdFTP: Can not resume file more 2 GB |
| Posted by: | "Alexe Bilchenko" (alexei.bilchen..@impet.com) |
| Date: | Fri, 14 Dec 2007 09:35:03 |
Thank you for reply.
I use TFileStream
I get version. (ftp://indy.fulgan.com/ZIP/indy10.zip 12/13/2007 11:40
6,652,745 )
I am sorry, for me English, but
I upload file more 3GB;
After reconnect to internet on server I see File with ~2.5 GB
I go your code:
i64BytesSent := FTPClient.Size(DestFileName); //Return 2.5 GB!!!!
if i64BytesSent < 0 then i64BytesSent := 0;
Stream.Position := i64BytesSent; // SET to 2.5 GB!!!!
FTPClient.Put(Stream, DestFileName, i64BytesSent > 0);
if ASize < 0 then begin //"-1" All from current position
LBufSize := AStream.Position; // Set AStream.Position ~ 2.5 GB
to Integer variable and receive error!!!