#37200 [Opn->Csd]: Prolem Loading BLOB > 1MB
| From: | tony2001@php.net | Date: | Tue, 25 Apr 2006 15:56:47 +0000 |
| Subject: | #37200 [Opn->Csd]: Prolem Loading BLOB > 1MB | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96221@lists.php.net to get a copy of this message | ||
ID: 37200
Updated by: tony2001@php.net
Reported By: derecke at gmail dot com
-Status: Open
+Status: Closed
Bug Type: OCI8 related
Operating System: Windows 2003
PHP Version: 5.1.2
New Comment:
Duplicate of http://pecl.php.net/bugs/bug.php?id=7113
Previous Comments:
------------------------------------------------------------------------
[2006-04-25 15:50:45] derecke at gmail dot com
Description:
------------
I am using the OCI call interface to load a BLOB from an oracle 9i
database. When I call the load() function I get exaclty 1MB of data if
the file is greater than 1MB. If I call size() function is gives the
the proper size.
Reproduce code:
---------------
$size = $result['FILE_DATA']->size();
$data = $result['FILE_DATA']->load();
echo $size;
echo strlen($data);
Expected result:
----------------
$size = 3365110
strlen($data) = 3365110
Actual result:
--------------
$size = 3365110
strlen($data) = 1048576
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37200&edit=1