SaveObjectToFile

 

Description

 

Saves an individual object from cache to a file.

 

Arguments

 

Name

Type

I/O

Description

ObjectUrl

String

In

The URL of the object to be written to a file.

FileName

String

In

The name of the file in which to save the object, or blank to synthesize a name based on the file name portion of the URL.

BshowSaveDialog

Boolean

In

Set to True to display the Image Save dialog and allow the user to select a name for the file.

 

Return Value

 

Long integer: zero for success, else non-zero.

 

Remarks

 

Files are saved to the directory specified by DownloadDir unless an explicit path is specified in the FileName argument.

 

Any page or embedded object present in cache can be written to a file with this method. When applied to an HTML page, this method saves only the raw textual content of the page. To capture both the text and embedded graphics of an HTML page in a single call, use the SaveToDisk method.