Java Serializable Object to Byte Array
        Posted  
        
            by ikurtz
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ikurtz
        
        
        
        Published on 2010-05-14T18:31:20Z
        Indexed on 
            2010/05/14
            18:34 UTC
        
        
        Read the original article
        Hit count: 239
        
(im new to java)
from my searches for Serialization in Java most of the examples document writing to a file or reading from one.
my question is lets say i have a serializable class AppMessage.
I would like to transmit it as byte[] over sockets to another machine where it is rebuilt from bytes received.
how could i achieve this please?
thanks for your insight in advance.
© Stack Overflow or respective owner