CakeFest 2024: The Official CakePHP Conference

ibase_blob_echo

(PHP 5, PHP 7 < 7.4.0)

ibase_blob_echoブラウザに blob の内容を出力する

説明

ibase_blob_echo(string $blob_id): bool
ibase_blob_echo(resource $link_identifier, string $blob_id): bool

この関数は読み込み用に BLOB をオープンし、直接その内容を標準出力 (たいていの場合はブラウザ) に送信します。

パラメータ

link_identifier

InterBase リンク ID。省略した場合は、 最後にオープンしたリンクを使用します。

blob_id

戻り値

成功した場合に true を、失敗した場合に false を返します。

参考

add a note

User Contributed Notes 1 note

up
0
jure dot sah at monoliths dot com
8 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.
To Top