grammar
db.collectionspace.collection.getLob(<oid>,<file path>,[forced])
Read the large objects in the collection.
Parameter Description
Note:
- Local files do not need to be created manually in advance.
- forced is false by default.
return value
No return value, Throws an error, and outputs the error, by getLastErrMsg () Gets error message or by getLastError () Gets error code.
error
Example
-
Write the lob with the identifier 5435e7b69487faa663000897 to the local /opt/newlob file
db.sample.employee.getLob( '5435e7b69487faa663000897', '/opt/newlob' )
Click on Jushan Database Documentation Center for more information