users@glassfish.java.net

Re: RE: How can I insert Blob data over 4000 byte with Toplink-Essential?

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Oct 2007 04:34:59 PDT

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