Board index » delphi » Indy 10 and ContentLenght

Indy 10 and ContentLenght


2004-11-16 05:53:04 AM
delphi160
Hello, you need to change the ContentLength property to Int64.
I have a 2,4 GB File (Stream.Size = 2409088616). When i would
like to serve this file and set the size to ContentLength, then this
have a value of -1885878680 and Indy set it to 0 and clients not
download the File!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
www.wegner24.de
 
 

Re:Indy 10 and ContentLenght

Forget it. There are to many places to modify.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
www.wegner24.de
"Thomas Wegner" <XXXX@XXXXX.COM>schrieb im Newsbeitrag
Quote
Hello, you need to change the ContentLength property to Int64.
I have a 2,4 GB File (Stream.Size = 2409088616). When i would
like to serve this file and set the size to ContentLength, then this
have a value of -1885878680 and Indy set it to 0 and clients not
download the File!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
www.wegner24.de


 

Re:Indy 10 and ContentLenght

"Thomas Wegner" <XXXX@XXXXX.COM>writes
Quote
you need to change the ContentLength property to Int64.
It is not so simple to do. There is a bunch of internal code that would
also have to change as well in order to support such a request.
The whole Integer vs Int64 issue is well known to Indy's programmers for a
long time. It is not always simple to support Int64, usually due to VCL
restrictions. And with the DotNet support now, we have to be careful in
what code gets implemented in order to work across all three platforms that
Indy supports (Indy, Win32, DotNet).
Gambit