I'm not absolutely sure it's required, but I think in practice you should
always specify the content type. Note that you can get most common types via
a lookup based on the file extension:

   String contentType = getServletContext().getMimeType( imagePath );

You can add additional mime types to web.xml and the above code will use
them, too (in addition to the common ones).

Vince

On Mon, Nov 30, 2009 at 12:25 PM, Prashant <[email protected]> wrote:

> thanks a lot guys.
>
>
> is it necessary to use resp.setContentType("image/gif"); even if url end
> with ".gif" ?
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to