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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 + 22 = ?
Subscribe to this entry?

 
 [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: Mon Apr 29 03:01:28 2024 UTC