You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Zilberstein Yuval <YU...@pelephone.co.il> on 2007/06/28 17:22:02 UTC

Image problem on tomcat

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: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org


Re: Image problem on tomcat

Posted by Roland Weber <os...@dubioso.net>.
Please send Tomcat questions to a Tomcat mailing list:
http://tomcat.apache.org/lists.html

best regards,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org


Re: Image problem on tomcat

Posted by Will Glass-Husain <wg...@gmail.com>.
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 <Da...@slc.co.uk> 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" <YU...@pelephone.co.il> 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: general-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: general-help@jakarta.apache.org
> >
>
>
>



-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com

Re: Image problem on tomcat

Posted by Danny Angus <Da...@slc.co.uk>.
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" <YU...@pelephone.co.il> 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: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
>