dcsimg
Storing serialized java objects into database
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jesus_Mayordomo
Posted On:   Tuesday, September 25, 2001 08:11 AM

Need some directions on how to store a serialized java object into a database (and how to retrieve it back into a object, of course).


My last try was using prepared statement setBytes() and resulset getBytes(), but deserialization function fails into readObject().


I know this is a fairly simple question and more than probably it has been already answered but, I have searched this forum, and faq, to no avail, so...


Some code example would be great!


TIA


Chus

Re: Storing serialized java objects into database

Posted By:   John_Senford  
Posted On:   Wednesday, September 26, 2001 08:31 AM

what is wrong with using PreparedStatement.setObject() ???

why is it necessary to serialize the object...Let your database Driver handle such details.
About | Sitemap | Contact