Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi [IdFtp, IndyFTP] Download fortsetzen funtzt einfach nicht! (https://www.delphipraxis.net/82779-%5Bidftp-indyftp%5D-download-fortsetzen-funtzt-einfach-nicht.html)

CK_CK 25. Feb 2007 13:46

Re: [IdFtp, IndyFTP] Download fortsetzen funtzt einfach nich
 
Ich hab' die IdFTP.Get-Methode umgeschrieben. So funktioniert sie wie gewünscht:
Delphi-Quellcode:
procedure TIdFTP.Get(const ASourceFile: string; ADest: TIdStream; AResume: Boolean = False);
begin
  //for SSL FXP, we have to do it here because InternalGet is used by the LIST command
  //where SSCN is ignored.
  ClearSSCN;
  AResume := AResume and CanResume;
  if AResume then
    ADest.Position := ADest.Size
  else
    ADest.Position := 0;
  InternalGet('RETR ' + ASourceFile, ADest, AResume);
end;
Viele Grüße,
Chris

Astronaut 25. Feb 2007 13:59

Re: [IdFtp, IndyFTP] Download fortsetzen funtzt einfach nich
 
Hallo,
habe selbst mal in den Source von INDY geschaut (IDFTP):

procedure TIdFTP.Get(const ASourceFile: string; ADest: TIdStream; AResume: Boolean = False);
begin
//for SSL FXP, we have to do it here because InternalGet is used by the LIST command
//where SSCN is ignored.
ClearSSCN;
AResume := AResume and CanResume;
ADest.Position := 0;
InternalGet('RETR ' + ASourceFile, ADest, AResume);
end;

Mit ADest.Position:=0; wird immer explizit vom Anfang her geladen, wenn mann diese Zeile auskommentiert, funktioniert auch der Vorschlag von Malibu.
(und mein Problem war auch gelöst!)
Schöne Grüße,

Astronaut 25. Feb 2007 14:01

Re: [IdFtp, IndyFTP] Download fortsetzen funtzt einfach nich
 
sorrry, meinte natürlich marabu!

Wiggles 28. Jun 2007 10:27

Re: [IdFtp, IndyFTP] Download fortsetzen funtzt einfach nich
 
Habe das gleiche Problem, habe das ganze auch schon im Indy-Source ausgebessert, meine Frage wäre nun, muss ich die Indy-Komponenten neu kompilieren damits Wirkung zeigt? Wenn ja, wie, wo :drunken: ?

Danke im Vorraus
Wiggles

Wiggles 29. Jun 2007 11:04

Re: [IdFtp, IndyFTP] Download fortsetzen funtzt einfach nich
 
*push*


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:23 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz