Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi IdHTTP läd nicht alles runter !? (https://www.delphipraxis.net/38730-idhttp-laed-nicht-alles-runter.html)

Neutral General 23. Jan 2005 15:01


IdHTTP läd nicht alles runter !?
 
Also mit dieser Procedure lade ich Dateien runter :

Delphi-Quellcode:
procedure Downloaden(Datei : String; Dest : String);
var
 Download: TFilestream;
begin
 Download := TFileStream.Create(Dest,fmCreate);
 try
  try
   Form1.IDHTTP1.Get(Url + Datei, download);
  except
   ShowMessage('Download fehlgeschlagen !');
  end;
 finally
  Download.Free;
 end;
end;
Das ging auch aber plötzlich kann ich nur noch Textdateien runterladen. :gruebel:
Ich verzweifele noch :wall:

Die Muhkuh 23. Jan 2005 15:03

Re: IdHTTP läd nicht alles runter !?
 
Hi,

wie rufst du die Procedure auf?

Neutral General 23. Jan 2005 15:06

Re: IdHTTP läd nicht alles runter !?
 
Delphi-Quellcode:
procedure Downloaden(Datei : String; Dest : String);
var
 Download: TFilestream;
begin
 Download := TFileStream.Create(Dest,fmCreate);
 try
  try
   Form1.IDHTTP1.Get(Url + Datei, download); // Wobei hier Datei nochmal Url + Datei ist also
  except                                    // Url + Url + Datei :wall:
   Form1.Gauge1.Progress := 0;
   ShowMessage('Download fehlgeschlagen !');
  end;
 finally
  Download.Free;
 end;
end;
Delphi-Quellcode:
Downloaden(Url + Version.Files[1],'C:\Probe.exe');
Und warum klappt das nicht ??

Zu viel Url :wall: :wall: :wall:

Die Muhkuh 23. Jan 2005 15:10

Re: IdHTTP läd nicht alles runter !?
 
Hi,

:wall: Solche Fehler kenn ich nur zu gut.^^


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:45 Uhr.

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