The moose likes JDBC and Relational Databases and the fly likes JDBC to SQL Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC to SQL Server" Watch "JDBC to SQL Server" New topic

JDBC to SQL Server

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I got a problem in posting an image into the database. pl. clarify my doubt and give the suitable answer for this. My Question is,
How can i store an image using Java code into SQL Server.
David Freels
Ranch Hand

Joined: Feb 01, 2001
Posts: 102
This company makes a commercial driver for SQL Server:
Also, you will need to use PreparedStatement to stream the image into the database (column type Image).
Hope this helps.
I agree. Here's the link:
subject: JDBC to SQL Server
It's not a secret anymore!