-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Durga Panda <[EMAIL PROTECTED]> wrote:
> 
>     //to show a pic which is hyper link to a file  (this will work)
>     out.println("<IMG SRC=\"/mcpd/servlets/chaseblue.gif\" WIDTH=140 
> HEIGHT=43 BORDER=0> ");

This works because it's correct. The IMG tag has a link to the image object.

>     //********
>     //to show a 3439 bytes  pic from a byte[] (i did as below;but it does 
> not work)
>     //********
>     File fl = new File("c:\\tryme\\chaseblue.gif");
>     byte[] pic = new byte[(int)fl.length()];
>     out.println("<IMG SRC=" ) ;
>     out.println( pic );
>     out.println(" WIDTH=140 HEIGHT=43 BORDER=0> ");

This doesn't work, because it's wrong. You need to put a link to the image,
not the binary data from the image itself.

You might want to read some HTML tutorial pages, like:
http://htmlprimer.com/

Or search for "HTML huhorial" on the web.
-- 
Sam Couter                                             [EMAIL PROTECTED]
Internet Engineer
tSA Consulting


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to