Versions available for this page: CUBRID 8.4.0 | CUBRID 8.4.1 |
The cubrid_lob_export() function is used to export BLOB/CLOB data to file.
bool cubrid_lob_export(resource $conn_identifier, resource $lob_identifier, string $path_name )
<?php
$lobs = cubrid_lob_get($con, "SELECT doc_content FROM doc WHERE doc_id=5");
cubrid_lob_export($conn, $lobs[0], "doc_5.txt");
cubrid_lob_close($lobs);
?>