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. Если не указан, предполагается последняя открытая ссылка.

blob_id

Возвращаемые значения

Возвращает true в случае успешного выполнения или false, если возникла ошибка.

Смотрите также

  • ibase_blob_open() - Открывает BLOB-объект для извлечения частей данных
  • ibase_blob_close() - Закрывает BLOB-объект
  • ibase_blob_get() - Получает количество байтов от открытого BLOB-объекта

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