Sanjeev Tripathi wrote:
> Thanks Wendy.
>   I know how to serialize object to file or socket. But
> How I can convert object to bytes so I can use
> byte[] encodedData = Base64.encodeBase64( binaryData );

Try using the serialize(Serializable obj) method on 
org.apache.commons.lang.SerializationUtils.

byte[] encodedData = Base64.encodeBase64(SerializationUtils.serialize(obj));

-- 
Bob Arnott



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to