#1  
Old 15th September 2015, 12:02 AM
Henry
 
Posts: n/a
Default PHP problem fetching binary data

I installed NexusDB_PHP_4.0_build_4


I fetch a binary image from my table :



$IMAGENR = $_GET['imgnr'];

$sql = "SELECT PICTURE FROM MYIMAGES WHERE IMAGENR = $IMAGENR;

$result = nexus_query($sql);

if ($row = nexus_fetch_assoc($result))
{
$image = $row["PICTURE"];
var_dump($image);
//$im = imagecreatefromstring($image);
//imagejpeg($im);
}
nexus_free_result($result);


With an older version php everything worked fine, php everything worked
fine. (NexusDB_PHP_4.0_build_3 reg_php_nexus_54.dll)

normally i would receive the image in the example i get the length of
the data.

string(177213) which is the size of the blob

after an update of to php 5.6

I did not receive the image anymore,

receiving the same blob i now get

string(275765) (which is wrong)


Do you have an idea how to solve this ?

Regards
Henry



  #2  
Old 16th September 2015, 08:53 PM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: PHP problem fetching binary data

> Do you have an idea how to solve this ?

I'm not aware of any changes to the database field reading code that
should cause this. Can you send me the table and PHP script to test?

--
Eivind Bakkestuen [NDD]
  #3  
Old 18th September 2015, 10:22 PM
Henry
 
Posts: n/a
Default Re: PHP problem fetching binary data

Op 16-9-2015 om 11:53 schreef Eivind Bakkestuen [NDD]:
>> Do you have an idea how to solve this ?

>
> I'm not aware of any changes to the database field reading code that
> should cause this. Can you send me the table and PHP script to test?
>


I created a little example to to reproduce the problem, and posted tme
in nexusdb.public.binaries

Henry
  #4  
Old 26th September 2015, 12:13 AM
Henry
 
Posts: n/a
Default Re: PHP problem fetching binary data

Op 18-9-2015 om 13:22 schreef Henry:
> Op 16-9-2015 om 11:53 schreef Eivind Bakkestuen [NDD]:
>>> Do you have an idea how to solve this ?

>>
>> I'm not aware of any changes to the database field reading code that
>> should cause this. Can you send me the table and PHP script to test?
>>

>
> I created a little example to to reproduce the problem, and posted tme
> in nexusdb.public.binaries
>
> Henry
>

I tested, retrieving the data with odbc instead of the php extension,
and than it works ok, i guess there is a problem in the extension, any
new on that ?

Henry
  #5  
Old 18th November 2015, 11:59 PM
Henry
 
Posts: n/a
Default Re: PHP problem fetching binary data

Still no news ??
  #6  
Old 19th November 2015, 09:32 AM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: PHP problem fetching binary data

Henry wrote:

> Still no news ??


I'm afraid I haven't had time to look into this yet. If you could
please log an issue in our tracker and include the selfcontained
testscript and table, I can have a look.

--
Eivind Bakkestuen [NDD]


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SELECT TOP problem binary Lex Strijker Binaries 0 4th May 2006 06:45 PM
Binary Server Bernhard Roos nexusdb.public.support 4 3rd December 2005 10:08 AM
NXCodeGun v.1.24 - Binary JFN Binaries 0 26th March 2005 06:55 AM
Where is th EM binary for download? Robert Meek nexusdb.public.support 2 9th March 2004 11:05 AM
Zero-length binary data is NULL? bruhmhaendoll nexusdb.public.support.sql 66 24th January 2004 09:52 PM


All times are GMT +11. The time now is 10:20 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.