(PECL CUBRID >= 8.3.1)
cubrid_lob_send — 读取 BLOB/CLOB 数据并直接发送到浏览器
cubrid_lob_send() 读取 BLOB/CLOB 数据并将其直接传递到浏览器。要使用此函数,您必须首先使用 cubrid_lob_get() 从 CUBRID 获取 BLOB/CLOB 信息。
conn_identifier
连接标识符。
lob_identifier
LOB 标识符。
示例 #1 cubrid_lob_send() 示例
<?php
$conn = cubrid_connect ("localhost", 33000, "demodb", "dba");
cubrid_execute($conn,"DROP TABLE if exists doc");
cubrid_execute($conn,"CREATE TABLE doc (id INT, doc_content CLOB)");
cubrid_execute($conn,"INSERT INTO doc VALUES (5,'hello,cubrid')");
$lobs = cubrid_lob_get($conn, "SELECT doc_content FROM doc WHERE id=5");
cubrid_lob_send($conn, $lobs[0]);
cubrid_lob_close($lobs);
cubrid_disconnect($conn);
?>