Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do we read an object in java which is stored in mysql as Blob data type  RSS feed

 
shailesh Kumar Prajapati
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we read an object in java which is stored in mysql as Blob data type?
MySql Table stored classes Object, like
Class Student implements Serialized{
int roll;
String name;
String course;
Student(int roll, String course, String name)
{
this.roll=roll;
this.name=name;
this.course=course;
}
}
we creat the object of class
Student stud=new Student(1."ram","Java");
Mysql database table stored stud.

How we read and display the object & its containts
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36393
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a good example of writing a Blob. It's easy to infer what the opposite would be.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!