Re: Converting binary data
| From: | l0t3k | Date: | Tue, 11 Jun 2002 14:22:53 +0000 |
| Subject: | Re: Converting binary data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101553@lists.php.net to get a copy of this message | ||
you may want to look at
http://www.php.net/manual/en/function.unpack.php
"Lucijan" <bigguy@email.si> wrote in message
news:20020611125937.44861.qmail@pb1.pair.com...
> Hi
>
> I'm retriving some binary data from a Interbase blob field (a custom
format
> to do some drawing) into a php variable like this:
>
> $blh = ibase_blob_open($row[4]);
> while ($blob = ibase_blob_get($blh, 400))
> $Objects .= $blob;
> ibase_blob_close($blh);
>
> Now I want to tell php to get first 4 bytes (btw, is there something that
> returns size of integer - sizeof seems to work on arrays only), and
convert
> them to integer
>
> Thanks
>
> Lucijan
>
>