Many web servers have a configured map between file extensions and
content types and that's how the browser knows how to handle a file if
no content type was specified in the HTTP. However, you don't know if
all your user's web servers are configured in such a way and that is
why it is better to specify the content type before sending out the
content.

Jorge Gonzalez


On Nov 30, 11:25 am, Prashant <antsh...@gmail.com> 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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to