-
Objects
Hi everyone,
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
Thank You
Yours Sincerely
Richard West
-
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.
Similar Threads
-
By Gengar003 in forum Java
Replies: 10
Last Post: 05-15-2005, 06:14 AM
-
By Michael Cole in forum Database
Replies: 2
Last Post: 04-02-2003, 03:06 PM
-
By Michael Cole in forum oracle.general
Replies: 0
Last Post: 02-20-2003, 10:25 PM
-
By Dave Fleischman in forum Enterprise
Replies: 3
Last Post: 08-18-2000, 01:10 PM
-
By Oliver Lennon in forum Enterprise
Replies: 3
Last Post: 04-18-2000, 12:30 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|