ibase_blob_add
(PHP 5, PHP 7 < 7.4.0)
ibase_blob_add — Add data into a newly created blob
说明
ibase_blob_add(resource
$blob_handle
, string $data
): voidibase_blob_add() adds data into a blob created with ibase_blob_create().
返回值
没有返回值。
参见
- ibase_blob_cancel() - Cancel creating blob
- ibase_blob_close() - Close blob
- ibase_blob_create() - Create a new blob for adding data
- ibase_blob_import() - Create blob, copy file in it, and close it

User Contributed Notes 1 note
a dot w dot peters at ieee dot org ¶
17 years ago
To actually insert the BLOB into a table, the following snippet of code shows how this can be done.
<?php
$dbh = ibase_connect($host, $user, $pass);
$blh = ibase_blob_create($dbh);
ibase_blob_add($blh, $data);
$blobid = ibase_blob_close($blh);
$sql = "INSERT INTO blobtable(blobfield) VALUES (?)";
$sth = ibase_query($dbh, $sql, $blobid);
?>
备份地址:http://www.lvesu.com/blog/php/function.ibase-blob-add.php