Pass Objects to Message Queue
Does anyone know how to pass a serialized object to a message queue and then read it from the queue. I need to pass an object to the queue and then deseralize it.
Hoagers34
[182 byte] By [
hoagers34] at [2007-11-19 10:48:42]

# 1 Re: Pass Objects to Message Queue
Use XmlSerializer to serialize ur object. Save the serialized xml string message to the queue.
When you want to recreate your object, get the message from the queue and deserialize it.
# 2 Re: Pass Objects to Message Queue
Thanks, I made it that far...I just did not know how to read the data. I found out that i need to use the BinaryFormatter to get the serialized data fromt he messagebody. Thanks.
hoagers34
# 3 Re: Pass Objects to Message Queue
Yeah it depends on how your are saving the serialized data...
ne ways u know how to do it... good :thumb: