One advantage of sending the URL via a blob message instead of just custom
encoding it into a text message is that you don't have to write the custom
encoding and decoding code.

Java also has an ActiveMQBlobMessage class (
http://activemq.apache.org/maven/5.13.3/apidocs/org/apache/activemq/command/ActiveMQBlobMessage.html),
so you would be able to send one in Java and receive it in C++ or vice
versa. But if you used features in one language that were not implemented
in the other, then obviously you may not get full compatibility.

Tim

On May 24, 2017 8:04 PM, "e271828" <165442...@qq.com> wrote:

Thanks,now I know that C++ client can only send and receive the URL,can not
directly upload or download the blob file.
If so that ,why I use blobmessage in C++ ,I can use textmessage instead of
blobmessage,send and receive URL through by textmessae?
my  c++ code as follow:
commands::ActiveMQBlobMessage* message = new
commands::ActiveMQBlobMessage();
        message->setStringProperty( "FILE.NAME", "www.jpg" );
        message->setRemoteBlobUrl("c:\\www.jpg")
        producer->send( message );
but my java code can not receive the  blobmessage StringProperty
"FILE.NAME".
public void onMessage(Message message) {
                if (message instanceof BlobMessage) {
                    BlobMessage blobMessage = (BlobMessage) message;
                    String fileName =
blobMessage.getStringProperty("FILE.NAME");}
If it is textmessage,my java code can read the StringProperty  "FILE.NAME".
Does c++ send blobmessage which can only receive by C++ and can not receive
by java?



--
View this message in context: http://activemq.2283324.n4.
nabble.com/BlobMessage-in-ActiveMQ-CPP-by-now-2017-tp4726457p4726533.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to