Originally posted by Jeanne Boyarsky:
[QB]Ramesh,
It sounds like the database part of that is to use a Statement to get the URL (String value) of a column. Then you load the image in a Servlet and output it to the HttpServletResponse.
Which of these steps are you asking about? What do you have so far?
Hi Jeanne,
My problem is solved in one way i.e., to store the URL of the image in the image field of the database and retrieving that URL in the for of a string in an <img> tag for a jsp page.
Now,
I want to store the image itself into the sql-server database as it is having image datatype and then retrieving that image onto a JSP page.
Hope u got my point.
Any help for you would be appreciable
Ramesh....
Originally posted by Jesper de Jong:
Ramesh, did you understand what Ulf and Ben explained?
It's not just a matter of extending GenericServlet. Normally, you have a servlet container that listens for HTTP (and HTTPS) requests. If an HTTP request is received, it calls your servlet.
If you want your servlet to be called when a client tries to contact the server via a different protocol (FTP, SMTP, whatever), you need to have server software that listens on the port for the protocol you want to use, and that software has to be able to call your servlet.
There's no ready-made server software available that can do this, so you would have to write it yourself. So it's not just a question of making your own SmtpServlet that subclasses GenericServlet.
Originally posted by Ben Souther:
You would need to learn all the ins and outs of that protocol and build a servlet container to handle it.
Originally posted by Albin Joseph:
Hi
You can use any type of protocol like FTP, SMTP with GenericServlet. But Sun is providing implementation only for HTTP protocol. So if you want to use FTP with servlet , then extend GenericServlet and provide the necessery implementations
Originally posted by Ben Souther:
Ramesh,
Explaining how to write a search engine is a bit beyond the scope of a JSP forum. If you're new to servlets or JSP, you might want to start out by looking for some tutorials to get you rolling. Then, if you get stuck on a particular problem, or if there is a concept that you are struggling with, by all means ask about it here.
If you're looking for a third party product, you might consider looking at Apache Lucene:
http://lucene.apache.org/java/docs/