1. how to use prepared statement in following case? stackoverflow.comI have following database schema for tabel tblpers
|
2. What does "if (rs.next())" mean? stackoverflow.comI am currently getting the error,
because I am using
and also had
in my code.
I now need to remove the ... |
4. preparedstatement throws sqlexception coderanch.comI have a code to upload file to database. I use preparedstatements. When I run the code, i am able to upload text files. If i choose any images or other files a SQLException is thrown. String contentType = image.getContentType(); String fileName=image.getFileName(); int size = image.getFileSize(); String data = null; IDatabase idb; try { byte[] imagedata=image.getFileData(); ByteArrayInputStream bais=new ByteArrayInputStream(imagedata); idb=new Connect(); ... |