ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Occhi" <andrea.oc...@consoft.it>
Subject R: Insert BLOB with Sql Server
Date Tue, 10 Apr 2007 15:36:21 GMT
thanks for all answer. 
My app rebegun to work!
thanks again 
Andrea

  _____  

Da: Koka Kiknadze [mailto:226057@gmail.com] 
Inviato: martedì 10 aprile 2007 16.47
A: user-java@ibatis.apache.org
Oggetto: Re: Insert BLOB with Sql Server


Hm, it works for me quite straighforward. I have a table with two columns:
ImageID: numeric and Image: image. Also I have a ByteStore class with two
fields int bytesID and byte[] bytes. 

The SQLMap is trivial, and it works (I use it to store uploaded images, ) 
<insert id='insertByteStore' parameterClass='.....ByteStore'>
     insert into Images (ImageID,image) 
         values ( #bytesID#,#bytes#) 
</insert>




Mime
View raw message