Re: Image problem on tomcat
"Will Glass-Husain" <[email protected]>
| Newsgroups | gmane.comp.jakarta.general |
|---|---|
| Message-ID | <[email protected]> |
You probably need to specify the MIME type in web.xml. See the servlet spec for more details. <mime-mapping> <extension>htm</extension> <mime-type>text/html</mime-type> </mime-mapping> The browser determines how to display the image based on the MIME type. I'm not sure what the correct MIME type should be though. best, WILL On 6/28/07, Danny Angus <[email protected]> wrote: > This is not the right place to get help, try the tomcat users list. > http://tomcat.apache.org/lists.html > > P.S. you probably need to add the extension and the mime type to a > configuration file. > > d. > > > "Zilberstein Yuval" <[email protected]> wrote on 28/06/2007 > 16:22:02: > > > Hello all, > > I have an image problem on the Tomcat server. > > I have a picture with a special Korean format: cwsis. It is just like > > any other jpg or gif image, but with a format that is not popular. > > The image itself is on the tomcat server. > > I am trying to display the image on a special mobile browser, by > > requesting it from a jsp on the tomcat server, > > But the browser can not display it. > > When I am trying to display it from another apache server it works ok. > > The code is as follows: > > > > <jsp:useBean id="entryB" class="com.pele.mmbox.beans.AlbumEntryBean" > > scope="session"/> > > <pre> > > </pre> > > <img src="http://10.171.193.85:8090/mmbox/o549d000212946200.cwsis"> > > <a href="testDownload.jsp">down</a> > > > > Any ideas? > > TIA Yuval > > > > TX > > YuvalZ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > -- Forio Business Simulations Will Glass-Husain [email protected] www.forio.com