ibase_blob_echo
(PHP 5, PHP 7 < 7.4.0)
ibase_blob_echo — Output blob contents to browser
说明
ibase_blob_echo(string
$blob_id
): boolibase_blob_echo(resource
$link_identifier
, string $blob_id
): boolThis function opens a BLOB for reading and sends its contents directly to standard output (the browser, in most cases).
参数
-
link_identifier
-
An InterBase link identifier. If omitted, the last opened link is assumed.
-
blob_id
-
返回值
成功时返回 true
, 或者在失败时返回 false
。
参见
- ibase_blob_open() - Open blob for retrieving data parts
- ibase_blob_close() - Close blob
- ibase_blob_get() - Get len bytes data from open blob

User Contributed Notes 1 note
jure dot sah at monoliths dot com ¶
6 years ago
There is an alternative for getting text out of a blob that does not require as much code. Quoted from a handy online resource:
PHP offers natively the possibility of getting the BLOB data as a string.
For example ibase_fetch_assoc ( resource $result [, int $fetch_flag = 0 ] ) provides the $fetch_flag parameter which can be set to IBASE_TEXT, causing the function to return BLOB contents instead of BLOB ids.
备份地址:http://www.lvesu.com/blog/php/function.ibase-blob-echo.php