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
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12266
1
posted
0
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.