Please bear with me as i have a rather silly question.
Lets say i have an object and i want to convert that object say a document or any other object to an array of bytes. Does anyone know how to do this?
Any help is greatly appreciated
In general it is not possible!
The only objects that would convert would be such as String. There are hundreds of objects that wouldn't make any sense out of context. For example FileInputStream or Random. What document would you make of these? Since the Object class has a toString() method, you'd get something out of any object. But what use is it?
Need to think this thru and explain a bit more.
Also PLEASE post links here to the threads on the other sites on this topic so we can learn from others and so that we don't have to repeat things.