To read the whole LOB into a variable:
<?php
$foo = $MyBlob->read($MyBlob->size());
?>
OCI-Lob->read
(No version information available, might be only in CVS)
OCI-Lob->read — ラージオブジェクトの一部を読み込む
説明
OCI-Lob
string read
( int $length
)
LOB の内部ポインタの現在位置から length バイト読み込みます。
length バイトが読み込まれた、 あるいはラージオブジェクトの終わりに達したとき、読み込みを停止します。 ラージオブジェクトの内部ポインタは、 読み込まれたバイト数分だけシフトされます。
パラメータ
- length
-
読み込むバイト数。
返り値
読み込んだ内容を表す文字列、あるいはエラーの場合に FALSE を返します。
OCI-Lob->read
alvaro at demogracia dot com
08-Oct-2008 04:32
08-Oct-2008 04:32