File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using BLOB in java

 
Raj Khanna
Greenhorn
Posts: 2
  • 0
  • 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: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"cdude dudec", please check your private messages for an important message from me.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic