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

From: Date: Sun, 16 Feb 2020 04:22:05 +0000
Subject: Bug #34253 [Fbk->NoF]: COM binary object/array issue (question marks?)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225590@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:       php-bugs@lists.php.net
 Reported by:      inny at core dot fetchnet dot org
 Summary:          COM binary object/array issue (question marks?)
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          COM related
 Operating System: Windows 2000
 PHP Version:      5.1.0RC1
 Assigned To:      cmb
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2020-02-07 08:32:36] cmb@php.net

Well, the given URLs are no longer available, and the COM object
appears to be a custom one, so I can only guess that the value in
question is a byte array (VT_ARRAY|VT_UI1), what can be confirmed
using variant_get_type().  If so, converting to string (implied by
echo) does not work and has to be worked around (see bug #41388).

------------------------------------------------------------------------
[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.

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


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 (#225590) next »