dcsimg
JDBC- Inserting Objects to Database
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, May 3, 2001 11:01 PM

How can BLOB objects be constructed and inserted into a database?

Re: JDBC- Inserting Objects to Database

Posted By:   Bartolomeo_sorrentino  
Posted On:   Friday, May 4, 2001 12:36 AM

You can use the standard serialization
System of java.

To insert Serializable Object use the JDBC PreparedStatement setBinaryStream method while to select use JDBC ResultSet getBinaryStream property.

I suggest you to store the size of Serializated Object into DB too.
About | Sitemap | Contact