Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Problem mit IdHttp (ContentRangStart) (https://www.delphipraxis.net/51043-problem-mit-idhttp-contentrangstart.html)

Koma-Code 4. Aug 2005 23:24


Problem mit IdHttp (ContentRangStart)
 
Hallo,

ich verwende Delphi 7 und habe ein Problem mit IdHttp.

Und zwar funktioniert bei Indy 10.0.52 die Request-funktion nicht (zumindest bei mir)
und bei Indy 9.0.18 kann man keinen Download in einen MemoryStream
machen (es wird die Datei nicht richtig gespeichert, bzw ein Stück abgeschnitten).

In beiden Fällen klappt der komplette Download der Datei problemlos.

Hier Auszüge aus dem Quelltext.

Festlegen des Downloadbereichs:
IdHttp.Request.ContentRangeStart := Pos;
IdHttp.Request.ContentRangeEnd := Pos+500000;

Etwas später in einem Thread, wobei MS ein MemoryStream ist:
IdHttp.Get(DownLoadTh[OwnNr].httpPath, MS);

Ich hoffe ihr könnt mir weiterhelfen.

Grüße,

KM

Daniel 4. Aug 2005 23:31

Re: Problem mit IdHttp (ContentRangStart)
 
Ein Thread zum Thema reicht. ;-)

Da ist der gleiche, um eine Viertelstunde frühere Thread zu finden: http://www.delphipraxis.net/internal...ct.php?t=60676


* locked *


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

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