JSP BasicsBeginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
This could be helpful for you, (support from Oracle)
Working with LOBs and BFILEs
This chapter describes how you use JDBC and the oracle.sql.* classes to access and manipulate LOB and BFILE locators and data, covering the following topics:
Oracle Extensions for LOBs and BFILEs
Working with BLOBs and CLOBs
Working with BFILEs
The problem with this is that you cannot put it into a table etc. The original poster of the solution in the Sun forum 'included' the jsp containing the above in the table of a second jsp, which is what I do also.
Hi angrycat,
ur solution enables me to display an image (stored as blob data type in mysql) on a jsp page..
However i cannot display the image(a gif image) in a table..
I followed ur instruction and included ur code(say Your_Code.jsp)in a second jsp page but only the image got displayed,not the table and its contents..
the sample code of second jsp page(say show.jsp) is as follows
<table>
<tr>
<td>Hello</td>
<td><%@include file="Your_Code.jsp"%></td>
OR
<td><jsp:include page="Your_Code.jsp" flush="true"/></td>
</tr>
</table>
the output of show.jsp is the gif image only without any html...
Kindly let me know how u implemented this functionality..
I did not use includes, I simply used the page as the image source:
<td><img src="getImage.jsp"></td>
What I havent tested is passing different parameters to the jsp page from this link, thus retrieving multiple records from the database, but Im pretty sure it will work.