Load object from binary object
objectLoad(binaryObject)
objectLoad(filepath)
returns any
Name | Type | Required | Default | Description |
---|---|---|---|---|
binaryObject | binary | Yes | A binary object returned by objectSave function. | |
filepath | string | Yes | A file path to a serialized object |
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);