As a general rule, you don't want to have any
JDBC code in a JSP. What you need to look at is:
How HTML forms handle files - for which you will need to use an form with the ENCTYPE set to "multipart/form-data"How you handle the file parameter from this form - look at java.io.FileInputStreamYou will also need to find out about CLOB or BLOB datatypes in the DB, which are how you store binary object in a relational database.How JDBC handles CLOBS/BLOBS - look at java.sql.PreparedStatement's setClob(int i, Clob x) method. Good luck. And please, post more quetions if you get stuck.