Subject | Re: [firebird-php] Binary data |
---|---|
Author | masotti |
Post date | 2012-02-27T09:51:10Z |
Hi Lester,
On 27/02/2012 10:20, Lester Caine wrote:
> Just to elaborate, The driver is using IBASE_TEXT to return the data and I
> suspect the current failure is simply that it stops at the first '00' as
> I am
> convinced that all that data after the '00' has been stored. I think a
> stream
> read is needed to get all the data, such as a compressed data packet?
From PHP docs, IBASE_TEXT has meaning only for BLOB fields, should be
ignored for VARCHAR and CHAR.
So, if you have a BLOB binary field, it should be subtype 0, and in that
case should be returned as is.
Other problem is the PHP variable where you store it.
AFAIR PHP has nothing except resources to store such data...
Ciao.
Mimmo.