-->
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.  [ 3 posts ] 
Author Message
 Post subject: Large binary field
PostPosted: Wed Jun 08, 2005 5:44 am 
Hi,

I have a byte array and want to persist it in an SQL Server database. This array will generally contains about 300000 bytes.

I created an image field in my table, mapped it to a byte[] using the binary type in the xml file.

I noted only the firsts 8000 bytes are saved...

Could someone explain me why ? Is it a limit of NHibernate ?

Thanks,
Fabien


Top
  
 
 Post subject:
PostPosted: Wed Jun 08, 2005 1:43 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
You have to use the right type, something like BinaryBlob, I believe. And maybe specify a length="big number" in your mappings. See this: http://nhibernate.sourceforge.net/nh-docs/en/html/chunk/ch03.html#mapping-types-basictypes


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 3:16 am 
Thank you very much, it works !

I used the type BinaryBlob without specifying any length. It seems ok.


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

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.