
The GET_BLOB_FROM_FILE function returns the data from a source stream file or a source physical file.
| 0 | whitespace is returned as it exists in the file |
| 1 | trailing whitespace (blanks) is removed except for the first trailing blank |
The result of the function is a BLOB locator.
The function will read the file specified by the argument with no CCSID conversion and return it as a BLOB locator. The function must be run under commitment control. The locator will be freed when a COMMIT or ROLLBACK is performed.
Register an XML schema document in the XSR registry where the XML schema is in a source stream file.
CALL XSR_REGISTER ('myschemalib', 'myschema', NULL,
GET_BLOB_FROM_FILE('/home/XML/MySchema.XSD',0), NULL)
