wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 18510
    
  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
 
Similar Threads
Sun Cirtification
Display an array in a swing type box
Short cast to char - bungle
Convert Object to byte array and array size should be 40
how to convert byte array into short??