DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Objects

  1. #1
    Join Date
    Oct 2004

    Question 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
    What type of softwares do you like and what would you pay for it?


  2. #2
    Join Date
    Jul 2005
    SW MO, USA
    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

  1. Replies: 10
    Last Post: 05-15-2005, 06:14 AM
  2. Bug with Creation of Objects in SQL *Plus Worksheet
    By Michael Cole in forum Database
    Replies: 2
    Last Post: 04-02-2003, 03:06 PM
  3. Bug with Creation of Objects in SQL *Plus Worksheet
    By Michael Cole in forum oracle.general
    Replies: 0
    Last Post: 02-20-2003, 10:25 PM
  4. Thin Objects for Better Performance
    By Dave Fleischman in forum Enterprise
    Replies: 3
    Last Post: 08-18-2000, 01:10 PM
  5. Components vs Objects
    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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.