![]() |
|
|
#1 |
|
Member
Join Date: Feb 2005
Location: ANtwerp - Belgium
Posts: 34
|
How to display a BLOB in java
In my database I have a table containing a blob. This blob is the poster of a corresponding film. To display a blob inside a JSP, you have to refer to a servlet, like this :
Code:
The parameter after /gco/cluifimg is only necessary to prevent the first blob shown to be left in the cache. Without this parameter, I only showed the poster of the first film, and after that the cache showed always this first poster with whatever movie was selected. The /gco/cluifimg is inside the web.xml to let Tomcat know that the servlet to show the blob is called imageServlet. ANd here's the code for this servlet. Code:
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Links to Java Tutorials | Administrator | Java | 0 | 07-26-2004 08:29 PM |