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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: derecke at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 13:01:28 2025 UTC