activemq-users mailing list archives

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

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

-- Send.php --
	$con = new StompConnection("tcp://localhost:61613");
	$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);



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
ID  :
EN :

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

View raw message