Bug #34253 [Asn->Opn]: COM binary object/array issue (question marks?)

From: Date: Fri, 13 Dec 2013 07:45:08 +0000
Subject: Bug #34253 [Asn->Opn]: COM binary object/array issue (question marks?)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183294@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=34253&edit=1

 ID:                 34253
 Updated by:         wez@php.net
 Reported by:        inny at core dot fetchnet dot org
 Summary:            COM binary object/array issue (question marks?)
-Status:             Assigned
+Status:             Open
 Type:               Bug
 Package:            COM related
 Operating System:   Windows 2000
 PHP Version:        5.1.0RC1
-Assigned To:        wez
+Assigned To:        
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2006-09-04 10:51:06] najath at onlnet dot com

hi i am using 5.1 PHP and MYSQL

my project is to store images and retrive binary values and convert to an image format again 

i have inserted the binary values to the feild and i have retrived also but always i am getting the
binarys not the image. plesae help me 


print ("<img src=". $row['bi']."/>");

------------------------------------------------------------------------
[2005-08-26 15:01:49] sniper@php.net

Assigned to maintainer.


------------------------------------------------------------------------
[2005-08-26 11:56:56] inny at core dot fetchnet dot org

"Amusingly" enough, the array_reduce method didn't work for PHP5. I guess that makes
sense though.

-- Oh don't worry, I'm having lots of fun (on my own) in my own little thread already.

------------------------------------------------------------------------
[2005-08-26 11:16:57] inny at core dot fetchnet dot org

I was adding support for PHP4 to the script, which made me wonder: if binary arrays are meant to be
received like this, what would be the fastest way to reformat them?

	foreach ($content As $obj) {
	// or foreach($content->value As $obj) in PHP4
	  $image .= chr($obj);
	}
	echo($image);

or maybe something like

	function rchr($v, $w) {
	  $v .= chr($w);
	  return($v);
	}
	$image = array_reduce($content, rchr);
	// or $image = array_reduce($content->value, rchr); in PHP4

or something else?

Thanks.

------------------------------------------------------------------------
[2005-08-25 18:37:36] inny at core dot fetchnet dot org

FYI, source of a now-operational version here:

http://demis.inny.org/temp/wms_working.php.txt

Non-operational script as .phps file:

http://demis.inny.org/temp/wms.phps

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=34253


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=34253&edit=1


Thread (9 messages)

« previous php.bugs (#183294) next »