users@glassfish.java.net

Is it possible to specify the size of a _at_LOB field in an entity? I am using TopLink Essential

From: Sarah kho <sarah.kho_at_gmail.com>
Date: Wed, 12 Aug 2009 03:10:39 +0430

Hi
I am using toplink essential and I have a @Lob field.
After I faced some problems with inserting the image files, I find out that
TopLink set the size of the Lob field to 64K (I am using Derby) and that
cause the problem with inserting big image files.
I do not know what should I do to instruct toplink to use 6,000,000 as the
@Lob field size.
My code for the @Lob field is like:
@Lob
  private byte[] picture;

I hope there is no limitation for the array size.
Thanks.