OT BLOBToObject version 1
OT BLOBToObject(inBLOB {; ioOffset}) Longint
→
Parameter Type Description
inBLOB BLOB A BLOB which contains an object
→
ioOffset Longint The offset within the BLOB where
↔ the object can be found
Discussion
OT BLOBToObject retrieves an object from a BLOB into a new object handle. The Object must have been stored in the BLOB with OT ObjectToBLOB, not with VARIABLE TO BLOB.
If ioOffset is not passed in it defaults to zero.
If the bytes at the given offset do not describe an object stored with OT ObjectToBLOB, an error is generated, OK is set to zero, ioOffset is left untouched and a null handle (0) is returned.
Warning The handle returned is a new object that is added to ObjectTools’ internal list of objects. You must be sure to clear the new object with OT Clear when you no longer need it.
See Also

