Attach protobuf message to solClient_msg_createBinaryAttachmentStream

Hi everyone!
Would you be so kind to tell me, how to attach GPBMessage to Solace message? I’m using solClient_msg_createBinaryAttachmentStream (C/iOS API) function to send a message, so my question is how to serialize it to needed type?

Hi @Ivan_Suprynovich …! That particular function solClient_msg_createBinaryAttachmentStream(), and its twin solClient_msg_createBinaryAttachmentMap(), are used specifically for Solace’s structured data types (SDT). Not exactly what you want.

As you are using ProtoBufs, I believe you simply want to attach the binary blob to the message, using solClient_msg_setBinaryAttachment(). CCSMP API: Main Page (API Guide)

Hopefully that helps!