The moose likes JDBC and the fly likes JDBC to SQL Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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.
subject: JDBC to SQL Server
Similar Threads
error while connecting to webservices
this is my first question,how to display the image from SQL-SERVER with JSP?
Storing and retrieving images
type mapping ( image, longvarbinary)
How can i display image .bmp in a JSP !!! Thanks !!!