Whatever message this page gives is out now! Go check it out!
ObjectLoad(binaryObject)
ObjectLoad(filepath)Parameter | Description |
binaryObject | A binary object returned by ObjectSave function. |
filepath | A string specifying the path to a file containing a serialized complex object, such as a query or CFC, or a variable that is a serializable binary representation of a complex object. This parameter must be the name of a file or an object returned by the ObjectSave function. |
<h3>Loading and saving an object.</h3>
<!--- Create the component object. --->
<cfobject component="tellTime" name="tellTimeObj">
<!--- Save the component object to a file. --->
<cfset ObjectSave(tellTimeObj, "data.out")/>
<!--- Load the component object again. --->
<cfset ObjLoaded = ObjectLoad("data.out") >
<!--- Invoke the methods from loaded objects. --->
<cfinvoke component="#ObjLoaded#" method="getLocalTime" returnvariable="localTime">
<cfinvoke component="#ObjLoaded#" method="getUTCTime" returnvariable="UTCTime">
<!--- Display the results. --->
<h3>Time Display Page</h3>
<cfoutput>
Server's Local Time: #localTime#<br>
Calculated UTC Time: #UTCTime#
</cfoutput>