http OutputFileName property
Return to Introduction  Previous page  Next page
Applies to
acHTTP component.  

Declaration
property OutputFileName: String;  

Description
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.  
 
tip Use the OutputFileName to specify the target filename if you need save data to the file AND if you don't want to use memory-stream of OnDone event.  
 
If you would like to hide the file with downloaded data from the file system — use HideOutputFile property.  

Example
acHTTP1.URL := 'http://www.domain.com/filename.zip';  
acHTTP1.OutputFileName := 'c:\filename.zip';  
acHTTP.Read;  

See also
HideOutputFile property;  
OnDone event and Read method.