-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Mysql longblob
PostPosted: Thu Nov 10, 2005 8:32 am 
Newbie

Joined: Fri May 27, 2005 6:16 am
Posts: 14
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.