File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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: 18532
    
  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??