php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37200 Prolem Loading BLOB > 1MB
Submitted: 2006-04-25 15:50 UTC Modified: 2006-04-25 15:56 UTC
From: derecke at gmail dot com Assigned:
Status: Closed Package: OCI8 related
PHP Version: 5.1.2 OS: Windows 2003
Private report: No CVE-ID: None
 [2006-04-25 15:50 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC