image « JDBC « JSP-Servlet Q&A

1. Servlets JDBC and Image

What i want to do is to display the sum of all rows of a particular column using servlets the servlet code is : Code: package Servlets; import java.sql.*; import; import; import java.util.logging.Level; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class handler extends HttpServlet { ...

2. Images,JDBC and servlets

3. How to display Images from MS access using JSP

You want to use the appropriate datatype, which would be Ole Object (looking at some access documentation). Then, presumably, use setBinaryStream to put it into the db, and getBinaryStream to get it out. I prefer to use streams, before anyone mentions get and setBlob. Now, I have no idea if Access will work with this, but the "proper" dbs do.