Skip to main content

(Pipe)Advertisement is *not* Serializable?

1 reply [Last post]
Joined: 2008-12-22

Why doesn't Advertisement base class implement Serializable?

I want to send my PipeAdvertisement to other peers and I can't just send the pipeAdv object. I have to send only its ID in String format and then re create the pipeAdv on the other side.

Any particular reason why this is not supported?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2008-09-22

Well i can't replay you whay Advertisement doesn't implement seriazible ,
but there is a workaround.

You can easily create document representing your advertisement, and then you can use getStream, or sendToStream.

On the other end you can use BinaryDocument to recreate the document.

BTW, i haven't tested this, but I think it should work.