Hi,
I am using a longblob in mysql. This is my mapping property:
<property
name="File"
type="binary">
<column name="FILE" sql-type="longblob"/>
</property>
I am mapping the file to byte[] tio store it. When using the same session everything goes fine (probably because a local cache), and I can retrieve the file without a problem. When I restart my application and I retrieve this property and write the byte[]s to a file, it only gets 65.536 bytes long, the default blob size in mysql. Does anyone know how I can get past this problem?
Regards,
Leen Toelen
|