byte to PipeAdvertisement
I need to send advertisement using multicast, so I need to convert it to byte first. I do it as follows...
Document doc = pipeAdv.getDocument(MimeMediaType.XMLUTF8);
InputStream is = doc.getStream();
byte bajte = new byte;
it probably works, but I have no idea how to do go back to PipeAdvertisement. Can somebody give me some advise?
And I think it is also worth to mention, that both class PipeAdvertisement and Document (LiteXMLDocument) are not serializable.
thanx in advance