Toggle Current Issue
ID: 1358 Reporter: vsharm
Status:
New New
Resolution:
unresolved
Category: Orion/Web/Servlet Reported Version: 2.0.7
Last seen Version: 2.0.7 Fixed Version:
Platform: Unspecified/All OS: Unspecified/All
Java version: Unspecified/All Severity: major
Visibility: Public Public
Summary: Servlets cannot read all MIME Types
Description:
We are trying to send a 3gp file from a local client to the orion Application server by running a midlet at the client side which tries to send a request to a servlet (Firstcheckjava) which is deployed on Orion AS.

The file that we are sending is of 94.4 KB. We are trying to send the file by getting the contents of the file in a binary array and then sending the binary array to the servlet (service method) as a HTTP Request. At the server, we pick up the binary array using a Data Input Stream and then try to create a 3gp file at the server. This file logically should be the same as the file sent by the web-client. However, the file data is not reaching to the server properly.

Our problem is that it seems that the data is going from the client to the server in text form. This is because when we try to send a text file as a binary array and use the same servlet, the file is formed and can be opened.

I assume that the problem is to specify the MIME type of the servlet Request object. We had tried doing this by specifying the MIME type in web.xml

<mime-mapping>
<extension>3gp</extension>
<mime-type>video/3gp</mime-type>
</mime-mapping>


But this does not seem to work.

This servlet is working perfectly on Weblogic and is able to recieve 3gp data, form a 3gp file, which can be played.

Can you suggest a solution (which xml file to modify so that the servlet can take a request which is not of the type text).



Collapse Public vsharm 20060828 12:25:35
Modification: Issue created