ibase_blob_echo

(PHP 5, PHP 7)

ibase_blob_echoWysyła zawartość BLOBa do przeglądarki

Opis

ibase_blob_echo ( string $identyfikator_bloba ) : bool
ibase_blob_echo ( resource $identyfikator_połączenia , string $identyfikator_bloba ) : bool

Ta funkcja otwiera BLOBa do odczytu i wysyła jego zawartość bezpośrednio na standardowe wyjście (najczęściej do przeglądarki internetowej).

Parametry

identyfikator_połączenia

Identyfikator połączenia do Firebird/Interbase. Jeśli został pominięty używane jest ostatnio otwarte połączenie.

identyfikator_bloba

Zwracane wartości

Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.

Zobacz też:

add a note 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