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: Saving images to database
PostPosted: Fri Mar 24, 2006 6:51 pm 
Newbie

Joined: Sat Jul 23, 2005 7:19 pm
Posts: 11
Hi, I am reading image files from my applications to buffered images, I want to save them on a column in a MS SQL Server 2000 database. I was searching on Google but I can't even have a clue on how to start. Can anyone give me some tip to do it? Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 9:30 pm 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
declare your mapping type as "binary"
declare your java type as byte[]
declare your SQL column type as VARBINARY or BLOB.

That should work; according to the book

_________________
-JT

If you find my replies helpful, please rate by clicking 'Y' on them. I appreciate it.


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.