hi friends,
I want to store images (.jpg or .png or .gif) in MS SQL Server 2005 database using JDBC-ODBC connectivity in servlet. can anybody give me step by step procedure to do it.
I don't wan't to store the reference to images, instead i want to store actual image file in a database.
Please take the time to choose the correct forum for your posts. This forum is for questions on Servlets, not JDBC. For more information, please read this.
This post has been moved to a more appropriate forum.
i am using the following code for storing image in ms sql server 05
i have wriiteen the following sql script
but when executed it shows this exception
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near '�'. please help !
Lokendra Shekhawat
Ranch Hand
Joined: Jun 08, 2009
Posts: 40
posted
0
I am also getting the same error. aren't there any way around it. can't we store image on the database at all???
amrish sharma
Greenhorn
Joined: Sep 24, 2009
Posts: 20
posted
0
ya i think the same there is no way to store images in sql server using servlet
so i gonna change the idea now i am going to give the clients selective images only already uploaded on server.. bye with some (cry and pain)
wait wait
i also downloaded "jtds-1.2.3-dist" driver for sql server but the same problem occured now i think its a problem of ODBC or the ms sql server
The above live Image as Table name ,but its entity or column is not mentioned like "INSERT INTO Images(ColumnName) VALUES(?)"; which is main requirement so makes exception ..
It's not required to add the column names; if you omit them it's equivalent to adding all column names. In this case there is only one column so there is no need to specify the column name.