(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);
?>