I'm doing something similar with Oracle 9i and manage fine inserting large blobs. The difference in the entity class is that I don't bother with the annotations (in fact Oracle JDeveloper doesn't generate them - using JDeveloper is a handy way to automate this process too):
@Column(nullable = false)
public byte[] getImage() {
return image;
}
public void setImage(byte[] image) {
this.image = image;
}
Hope this helps
[Message sent by forum member 'richliv' (richliv)]
http://forums.java.net/jive/thread.jspa?messageID=238435