This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes How do we read an object in java which is stored in mysql as Blob data type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "How do we read an object in java which is stored in mysql as Blob data type" Watch "How do we read an object in java which is stored in mysql as Blob data type" New topic
Author

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

shailesh Kumar Prajapati
Greenhorn

Joined: Jun 20, 2009
Posts: 1
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
Marshal

Joined: May 26, 2003
Posts: 31415
    
184

Here's a good example of writing a Blob. It's easy to infer what the opposite would be.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do we read an object in java which is stored in mysql as Blob data type