Hi everybody! Can I write a Java Bean to load an Image (gif/jpeg) from =
disk (using FileInputStream) and displaying it onto the screen??
Yes you can. Just set content type of jsp page to "image/gif",
make sure the jsp page does not print anything else and
let the bean write the file to out.
But this really isn't the kind of thing that you should use JSP for. A servlet can
be written to do this in a much nicer way in only about 10 lines of code.
Carsten Heyl wrote:
Hi everybody! Can I write a Java Bean to load an Image (gif/jpeg) from =
disk (using FileInputStream) and
Hi everybody! Can I write a Java Bean to load an
Image (gif/jpeg) from disk (using FileInputStream) and displaying it onto the
screen??
Many thanks in advance, Marcello.