objectLoad

Load object from binary object

objectLoad(binaryObject) objectLoad(filepath) → returns any

Argument Reference

binaryObject binary
Required

A binary object returned by objectSave function.

filepath string
Required

A file path to a serialized object

Links more information about objectLoad

Examples
Sample code invoking the objectLoad function

people = queryNew('id,name','integer,varchar', {'id':1,'name':'Pedro'});
binary_people = objectSave(people);
writeDump(binary_people);
restored_people = objectLoad(binary_people);
writeDump(restored_people);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub