I am trying to develop alljoyn applications using C as my language binding. I have understood and implemented the basic tutorial, customized it and able to build applications at both server and client. Now comes the second part of my development to program a file transfer server and client by reading the files and putting them onto alljoyn bus reply.
Since Alljoyn reply can be only of 65536 bytes I framed my own protocol between server and client where server breaks down the message and the client receives the message chunks sequentially one after another. Now I am facing a problem here which I would like to describe briefly.
(1) If I transmit text messages I receive them perfectly.
(2) If I transmit a binary data I would loose data. My understanding is that the alljoyn bus reply is a string and whenever I am receiving a NULL all the subsequent characters are read as zeros at the receiver.
What to do for mitigating this.
I want to know if there any ways where I can mask off the NULL characters in my binary data string or the approach what I am following itself is flawed.
I just started to use this alljoyn framework and I am very much newbie. Any help would be greatly helpful.