-->
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.  [ 2 posts ] 
Author Message
 Post subject: SQL Server Blog
PostPosted: Fri Dec 23, 2005 12:59 am 
Newbie

Joined: Wed Dec 14, 2005 12:05 am
Posts: 8
I have search the message boards and documention and cant find how to handle a .net type of byte[] to a image type of sql server.

It appears the data is going in and out of Sql Server but it seems to be corrupted.

I tried putting a image database directly with sql, and extract it. It works find under this scenario.

Right now I am using the byte[] type for .net, and the image type for sql server. I also tried using BinaryBlob.

Any mapping files that is doing this sucesfully would be apprecaited, and code snipits.

Thanks in advance,

Mardo


Top
 Profile  
 
 Post subject: Got It Working..
PostPosted: Fri Dec 23, 2005 2:18 am 
Newbie

Joined: Wed Dec 14, 2005 12:05 am
Posts: 8
I got it working.. The following mapping works fine..

<property name="SignatureBitMap" type="BinaryBlob">
<column name="SignatureBitMap" not-null="false"/>
</property>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.