Internet Direct (Indy) Version 9.0.2 Beta
|
procedure SaveToFile(AFileName: string);
SaveToFile creates and uses a writable TIdIOHandlerStream instance that is assigned to TIdMessageClient.IOHandler property. The TIdMessageClient instance then opens the write buffer using a 32K buffer size, calls the TIdMessageClient.SendMsg method to perform the operation using the IOHandler, and closes the write buffer.
The TIdMessageClient, TIdIOHandlerStream, and TFileStream class instances are all freed prior to exiting from the method.