I have a jsp that includes lots of other jsp-s. Now one such included jsp (renders a nice html table panel as other similar ones also do, which) has to display an image. This image dynamically will come from documentum as a document object. From that document object, i can get document.getBData() which gives byte array or i can get document.getFile() which gives java.io.File.
In my case this is a (jpeg) image file
where src attribute of the img tag point to the servlet url
Now the former option did not do anything...i mean it is not getting to the servlet.. i might be missing some simple knowledge here...
Latter option reaches the servlet...as i knew it, it hits this illegalstateexception. i could not find a way to properly do it. can someone help me?
Another way to ask the question is: Can we have a servlet to process part of the response? or Can we render images from database CLOB type?
All the examples I see online are to render an image as a total response...