I'm guessing here but I would do the following:

response.setContentType("image/tiff");
ServletOutputStream out = response.getOutputStream();

and write to it.

This is of course for an HTTP servlet.  And I think that you may be talking
about a generic servlet where you don't display in a browser (since they don't
see tiff).  In that case you would just open the stream and write to it with
the image data.

dave.

"Aziz, Azlan" wrote:

> Greetings,
>
> I'm trying to send a "tif" image using a servlet.
> How do I achieve this?
>
> Thank you.
> Azlan
>
> ___________________________________________________________________________
> 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

--
David Mossakowski        [EMAIL PROTECTED]
http://www.dwdog.com/styk      212.310.7275

"I don't sit idly by, I'm planning a big surprise"
F         U         G         A        Z        I

___________________________________________________________________________
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