title: Converting any object to a byte array in java
body: <p>I have an object of type X which I want to convert into byte array before sending it to store in S3. Can anybody tell me how to do this? I appreciate your help.</p>