You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zilberstein Yuval <YU...@pelephone.co.il> on 2007/06/28 18:12:55 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Image problem on tomcat

Posted by Martin Gainty <mg...@hotmail.com>.
Yuval--

from the Wireless Bitmap (WBMP) documentation
"If "image/gif", "image/jpg" and "image/png" are found in the accept HTTP 
header, it means the WML browser can display the GIF, JPG and PNG image 
formats.
so you'll need to convert from *ProprietaryFormat* to GIF 87a, GIF 89a 
(animated GIF), JPG and or PNG and as long as the web-server will serve it
The wireless browser should be able to render..take a look at
http://www.developershome.com/wap/wml/wmlImages.asp

Anyone else?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Zilberstein Yuval" <YU...@pelephone.co.il>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Thursday, June 28, 2007 12:12 PM
Subject: 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Image problem on tomcat

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yuval,

Zilberstein Yuval wrote:
> 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.

Does this image render properly on a "normal" web browser (like MSIE,
ff, Safari, Opera, etc.)?

> When I am trying to display it from another apache server it works ok.

Do you mean that it renders properly on the mobile device when served by
Apache httpd? If the only difference is the server, it's possible that
Tomcat doesn't send the correct content type, and the mobile browser is
refusing to interpret the file as a CWSIS file.

Use a regular browser to pull-up that image served by Tomcat in one
window and Apache httpd in another. Check the HTTP headers to see if the
content-type headers are different. If Tomcat sends the wrong
content-type, you can probably just configure Tomcat to use the proper
type with files that end in a particular file extension (like ".cwsis").

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGg+Ev9CaO5/Lv0PARAoRDAJ9ZMX78I7o2a6NRC5CgDW7SGIz/5QCeMd/z
op4c3zrCaR50RR+t6qkTwpo=
=tK3i
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Image problem on tomcat

Posted by Jon Wingfield <jo...@mkodo.com>.
Is it a mime-type issue?
The content is probably being vended as application/octet-stream, which 
the mobile device is probably not liking.
You can add additional mime-mappings into your web.xml.
If you are fronting tomcat with apache httpd you can also add 
mime-mappings into the httpd.conf

Jon

Zilberstein Yuval wrote:
> 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org