This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I have a database field in SQL server database defined as text datatype, the data stored in that field can be either text, Images, Signatures. Is there any way in JSP to show the data on the browser, (the data stored in the database)i.e. the Images or Signatures as Images or Signatures. Please suggest me. Thanks, Narasimham
Remember that a browser has to make a separate request for an image, you can't mix the image data in with the HTML. Your JSP page will have to find out what kind of data is in the record and format output accordingly. You will have to use a servlet to serve image data because you have to set the content type and content length. Sounds like a job for a bean shared between the JSP and a servlet. Bill
"nvssin", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in again with a new name which meets the requirements. Thanks.