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?

Tagged:

Comments

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 495 admin

    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(). https://docs.solace.com/API-Developer-Online-Ref-Documentation/c/index.html

    Hopefully that helps!