activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suprie Leonhart" <suprie.leonhe...@gmail.com>
Subject Help with activemq, stomp, php and blob
Date Thu, 06 Mar 2008 04:20:04 GMT
Hi

I'm trying to upload file to activemq queue, but it always failed

-- Send.php --
<?php
	require_once('Lib/stomp/stomp.php');
	require_once('Lib/stomp/JSON.php');
	
	$con = new StompConnection("tcp://localhost:61613");
	
	$con->connect();
	
	$data = file_get_contents($_FILES['file_to_upload']['tmp_name'],false,NULL,0,fileSize($_FILES['file_to_upload']['tmp_name']));
	$msgHeader = array ();

	echo "SENDING Message : MD5 ".md5($data);
	$con->send("/queue/Q1", $data, $msgHeader);

	$con->disconnect();

?>

did i do something wrong ??
the message is success when i'm trying to send it, but the body is not
filled with the blob type, sometime only the metadata that show up.

-- 
--
Best Regards
Suprie
ID  : http://suprie1983.wordpress.com
EN : http://suprie.in.ruangkopi.com

"Great deed of great man is to forgive and forget"

Mime
View raw message