Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ibase_blob_get(3) [php man page]

IBASE_BLOB_GET(3)							 1							 IBASE_BLOB_GET(3)

ibase_blob_get - Get len bytes data from open blob

SYNOPSIS
string ibase_blob_get (resource $blob_handle, int $len) DESCRIPTION
This function returns at most $len bytes from a BLOB that has been opened for reading by ibase_blob_open(3). Note It is not possible to read from a BLOB that has been opened for writing by ibase_blob_create(3). PARAMETERS
o $blob_handle - A BLOB handle opened with ibase_blob_open(3). o $len - Size of returned data. RETURN VALUES
Returns at most $len bytes from the BLOB, or FALSE on failure. EXAMPLES
Example #1 ibase_blob_get(3) example <?php $result = ibase_query("SELECT blob_value FROM table"); $data = ibase_fetch_object($result); $blob_data = ibase_blob_info($data->BLOB_VALUE); $blob_hndl = ibase_blob_open($data->BLOB_VALUE); echo ibase_blob_get($blob_hndl, $blob_data[0]); ?> Whilst this example doesn't do much more than a 'ibase_blob_echo($data->BLOB_VALUE)' would do, it does show you how to get information into a $variable to manipulate as you please. SEE ALSO
ibase_blob_open(3), ibase_blob_close(3), ibase_blob_echo(3). PHP Documentation Group IBASE_BLOB_GET(3)

Check Out this Related Man Page

CUBRID_LOB_SIZE(3)							 1							CUBRID_LOB_SIZE(3)

cubrid_lob_size - Get BLOB/CLOB data size

SYNOPSIS
string cubrid_lob_size (resource $lob_identifier) DESCRIPTION
cubrid_lob_size(3) is used to get BLOB/CLOB data size. PARAMETERS
o $lob_identifier -LOB identifier. RETURN VALUES
A string representing LOB data size, when process is successful. FALSE, when process is unsuccessful. CHANGELOG
+--------+-----------------------------------------------+ |Version | | | | | | | Description | | | | +--------+-----------------------------------------------+ | 8.4.0 | | | | | | | Change return value type from int to string. | | | | +--------+-----------------------------------------------+ EXAMPLES
Example #1 cubrid_lob_size(3) example <?php $lobs = cubrid_lob_get($con, "SELECT doc_content FROM doc WHERE doc_id=5"); echo "Doc size:".cubrid_lob_size($lobs[0]); cubrid_lob_export($conn, $lobs[0], "doc_5.txt"); cubrid_lob_close($lobs); ?> SEE ALSO
cubrid_lob_get(3), cubrid_lob_close(3), cubrid_lob_export(3), cubrid_lob_send(3). PHP Documentation Group CUBRID_LOB_SIZE(3)
Man Page