SaveToFile Method
Saves the binary contents of a Stream to a file.
Syntax
Stream.SaveToFile FileName, SaveOptions
Parameters
Note
|
|---|
|
If you overwrite an existing file (when adSaveCreateOverwrite is set), SaveToFile truncates any bytes from the original existing file that follow the new EOS. |
Remarks
SaveToFile may be used to copy the contents of a Stream object to a local file. There is no change in the contents or properties of the Stream object. The Stream object must be open before calling SaveToFile.
This method does not change the association of the Stream object to its underlying source. The Stream object will still be associated with the original URL or Record that was its source when opened.
After a SaveToFile operation, the current position (Position) in the stream is set to the beginning of the stream (0).
Applies To
See Also
Note