|
|
|
| acHTTP component.
|
| property OutputFileName: String;
|
| The OutputFileName property specifies the target filename for downloaded resource. If the OutputFileName specified, the acHTTP uses the TFileStream instead of TMemoryStream as the storage for downloaded data.
|
|
|
|
|
| If you would like to hide the temporary (incomplete) file while it downloading set OutputFileAttributes.Incomplete property to [atrHidden].
|
|
|
| In case if the OutputFileName can not be created (e.g. path not exists, or file locked by system etc) OnOutputFileError event occur.
|
|
|
| In case of HTTP error, the downloaded content will be represented as TMemoryStream in various events of acHTTP.
|
| acHTTP1.URL := 'http://www.domain.com/filename.zip';
|
| acHTTP1.OutputFileName := 'c:\filename.zip';
|
| acHTTP.Read;
|
| OutputFileAttributes property;
|
| Read, ReadRange, Resume and Pause methods;
|
| OnDone, OnHTTPError and OnOutputFileError events;
|
| HTTP Status Codes.
|