Attach protobuf message to solClient_msg_createBinaryAttachmentStream

Ivan_Suprynovich
Member Posts: 2 ✭
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?
Tagged:
0
Comments
-
Hi @Ivan_Suprynovich ..! That particular function
solClient_msg_createBinaryAttachmentStream()
, and its twinsolClient_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()
. https://docs.solace.com/API-Developer-Online-Ref-Documentation/c/index.htmlHopefully that helps!
0