dcsimg
How to store class in a database ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   emiliano_carlesi
Posted On:   Friday, October 19, 2001 12:44 PM

Hi !!
I need to store some classes in my database and after thi I need to load this from the database with my classloader. Now ... If instead the db I use some files to store the classes (that implements java.io.Serializable) all work fine. The problem is when I use my db (MySQL). I have a table with two field : name (varchar) and raw (blob).
I get the blob with the methods getBlob() and getBytes() of the java.sql.Statement interface but ... nothing ! Error magic number at run time.If someone have solved this problem ... help me please :-)

Thanks
emiliano

About | Sitemap | Contact