Send xml data

asked 2015-09-28 09:15:28 -0700

toppaste gravatar image

Dear AllSeen members,

I want to send an xml file using proprietary interface, I don't need to parse the internal field at allJoyn level.

which is the most appropriate d-bus type to be used - a string containing the whole file - and array of bytes Are them valid solutions? Which are pros and cons?

Thank You very Much

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-28 10:18:48 -0700

julianbros gravatar image

I did the same and sent the pure XML as string over the wire. Due to AllJoyn can send/receive strings nearly automatically, you don't need to annotate them as byte. The conversion to byte is done later on by the AJ core before the "string object" is sent over the bus.

Please correct me if I'm wrong ;-)

edit flag offensive delete publish link more


Agreed. I would say that "s" would be the way to go. This way when you receive in Java you don't need to take a `byte[] ("ay")` and make a string out of it, it already is a String that you can parse/display/use.

bspencer ( 2015-10-02 13:30:08 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-09-28 09:15:28 -0700

Seen: 51 times

Last updated: Sep 28 '15