• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using BLOB in java

 
Raj Khanna
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a class Emp

public class Emp implements java.io.Serializable {
public int no;
public String name;
public Emp(int no, String name) {
this.no = no;
this.name = name;
}
}

and i have a created a table

create table tableEmployee(empid smallint, empdata BLOB(4096))

How can add record into the blob column and also how to read data from the blob

column using java.

Would be grateful if some one can give a sample code.

Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"cdude dudec", please check your private messages for an important message from me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic