HI
try like this
out.println("<IMG SRC= abcimg.gif WIDTH=700 HEIGHT=44 BORDER=0 ALT=Your
Browser Do Not Support JPG>");
> -----Original Message-----
> From: Shawn Sohl [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 27, 2000 10:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Servlets and Images
>
> Chris,
> (b) is the scenario I am looking for. I want to take a .gif file
> located on the server and pass the image along with HTML back to the
> browser. Any help would be appreciated.
>
> Thanks
>
> -----Original Message-----
> From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 27, 2000 9:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Servlets and Images
>
>
> Shawn Sohl wrote:
> >
> > How do you embed an image in a servlet and pass it down to the browser.
> I
> > am reading "Professional Java" and they say you need to use an "Encoder"
> > object that isnt available in 1.2. Is there an "Encoder" object
> available
> > in 1.3? and if so how do I use it?
> >
>
> Do you want to:
>
> a) Merely display an image in an html page generated by a
> servlet?
>
> b) Take an image from the disk, read it into the servlet,
> and have the servlet send the image as a response to
> a request from a client?
>
> c) Have the servlet actually generate the image on-the-fly
> in-memory, and send that to the client in a response?
> (eg, have the servlet generate a custom graph in response
> to a user query)
>
> The answer depends...
>
>
> -cks
>
> __________________________________________________________________________
> _
> 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
___________________________________________________________________________
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