Converts the contents of a blob field to an operating system file.
$fromblob(blob field, destination file)
|blob field||an existing blob field from an entity set or relationship with fields|
|destination file||a path to an operating system file to hold the blob field contents|
A true or false value indicating whether the function could convert the contents of the blob field to the file. For example, it can fail if the destination file path is invalid.
find MyEnt where MyKey=1 evaluate (let MyVariable=$fromblob(MyBlob,”c:\database\images\myphoto.jpg”))
It retrieves the record number 1 from MyEnt and then converts the blob to the file “myphoto.jpg” in that directory. Evidently, the programmer must know that the blob stored in the record number 1 is a JPG image. If the operation was successful, MyVariable will contain the value $True (or 1).