mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-21 03:18:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146503 c90b9560-bf6c-de11-be94-00142212c4b1
73 lines
2.3 KiB
XML
73 lines
2.3 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.41 -->
|
|
<refentry id='function.ibase-blob-get'>
|
|
<refnamediv>
|
|
<refname>ibase_blob_get</refname>
|
|
<refpurpose>
|
|
Get len bytes data from open blob
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>ibase_blob_get</methodname>
|
|
<methodparam><type>resource</type><parameter>blob_handle</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>len</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
This function returns at most <parameter>len</parameter> bytes from a BLOB
|
|
that has been opened for reading by <function>ibase_blob_open</function>.
|
|
Returns &false; on failure.
|
|
<informalexample>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$sql = "SELECT blob_value FROM table";
|
|
$result = ibase_query($sql);
|
|
$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]);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</informalexample>
|
|
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.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
It is not possible to read from a BLOB that has been opened for writing
|
|
by <function>ibase_blob_create</function>.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
See also
|
|
<function>ibase_blob_open</function>,
|
|
<function>ibase_blob_close</function> and
|
|
<function>ibase_blob_echo</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|