Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Serializing an Object to a String instead of a File

807589Nov 27 2008 — edited Nov 29 2008
Hey,

I'd like to serialize an object to an SQL database using JDBC. With the structure of the database, it would be much easier to serialize the object to a String and then upload the String to the database. However, I've only found ways to serialize objects to File objects. It seems like the File is just going to be a text document filled with numbers / letters, so why can't I just serialize to a String?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2008
Added on Nov 27 2008
26 comments
528 views