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.
By Gengar003 in forum Java
Last Post: 05-15-2005, 07:14 AM
By Michael Cole in forum Database
Last Post: 04-02-2003, 04:06 PM
By Michael Cole in forum oracle.general
Last Post: 02-20-2003, 11:25 PM
By Dave Fleischman in forum Enterprise
Last Post: 08-18-2000, 02:10 PM
By Oliver Lennon in forum Enterprise
Last Post: 04-18-2000, 01:30 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center