Hi, I made some fixes to the binary messages handling in php stomp client.
You can take 1.1-SNAPSHOT here http://stomp.fusesource.org/snapshot/php/1.1-SNAPSHOT/stomp-php-1.1-20091102.tar.gz also take a look at an example on how to handle binary messages here http://fusesource.com/forge/gitweb?p=stomp.git;a=blob;f=php/src/examples/binary.php;h=d0908a7106741abb73b362e2c1e283c21ca58743;hb=HEAD Please let me know if it works for you now. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Sat, Oct 31, 2009 at 11:34 PM, massive.boisson <massive.bois...@gmail.com > wrote: > > Hi, > > I have been able to setup php producing and java consuming messages. > These are only text messages at the moment. > > Is there a way to send byte messages? > > I tried reading file from system and passing it along as body, with: > $header = array("content-length"=>1); > > But I had problems: > 1) I had to change Message/Bytes.php to extend StompMessage (and not > Stomp_Message). > > 2) I get > ERROR message:content-length bytes were read and there was no trailing null > byte > > org.apache.activemq.transport.stomp.ProtocolException: content-length bytes > were read and there was no trailing null byte > at > > org.apache.activemq.transport.stomp.StompWireFormat.unmarshal(StompWireFormat.java:149) > > Is this supported? Are there any examples of this, or has anyone been able > to get it to work? > Or can I use something else? > > Thanks > > --MB > -- > View this message in context: > http://old.nabble.com/php-stomp-issues-tp26146548p26146548.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >