>
>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.

<%@ page contentType="image/gif" %><jsp:useBean id="imgreader" ...><%
imgreader.write(out) %>

with
        imgreader(Writer out)

Note: no line break between jsp tags!

After reading the jsp FAQ I saw a snippet of how to generate
GIF on the fly and completed it to a jsp page and put in
the examples section of current gnujsp 1.0 version.
It's great! (Using the great Acme library.)

>Many thanks in advance, Marcello.
>
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST"
.
>FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html

Ciao,
        Carsten Heyl

  Carsten Heyl                          [EMAIL PROTECTED]
  NADS - Solutions on Nets              http://www.nads.de/
  NADS GmbH                             http://www.pixelboxx.de/
  Hildebrandtstr. 4E                    Tel.: +49 211 933 02-90
D-40215 Duesseldorf                     Fax.: +49 211 933 02-93

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to