aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Convert Object to byte array and array size should be 40 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Convert Object to byte array and array size should be 40" Watch "Convert Object to byte array and array size should be 40" New topic
Author

Convert Object to byte array and array size should be 40

Srikanth Nakka
Greenhorn

Joined: Apr 15, 2007
Posts: 26




i want to convert above class to byte array and array size should be 40

please help me on how to convert class to byte array and size should be 40


Thanking You,
Srikanth Nakka
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19073
    
  40

Take a look at the java.nio.ByteBuffer class. Just wrap a byte array, and put everything from your class into it.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Convert Object to byte array and array size should be 40