You need to set the image path like this: "/system/images/image1.gif" Try
this way, would you see the image you need? The images are shown by usual
way of web-server does through http connect. They are not shown like a text
from an array. You may also let the certain servlet to show images, that
"calculate" URLs, and you may simply write something like:
<img src="/servlets/image?n=1"> ...     See for example Apache java
server...


> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology. [mailto:[EMAIL PROTECTED]]On
> Behalf Of Matthias Brantner
> Sent: Tuesday, March 07, 2000 6:17 PM
> To: [EMAIL PROTECTED]
> Subject: Display HTML-File including Image
>
>
> Hi,
>
> I have got an HTML-File stored in an Array, where each line is on field.
> This HTML-File should also display Images.
> I have got an ServletOutputStream, which ContentType is "text/html"
>
> I can display the complete HTML-File from my Array in my Browser. But
> the Browser doesn't show Images. The Path to the Images is OK.
>
> How can I make my Servlet display the Image?
> Thanx in advance.
>
> Matthias
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to