Unsupported Media Type when deploying OTA Blackberry App

871 Views Asked by At

I have a blackberry app that I am trying to deploy OTA (over the air).

I have set the MIME type on my server to be:

cod  application/vnd.rim.cod

jad     text/vnd.sun.j2me.app-descriptor

jar     application/java-archive

When I access the JAD file on my web-server through the BlackBerry Browser, I get the message

Unsupported Media Type

and then a prompt to download the JAD. How can I resolve this?

2

There are 2 best solutions below

0
On

Double checked MIME type settings and there was a typo. They have to be EXACT or there will be problems.

1
On
AddType application/vnd.rim.cod

AddType  text/vnd.sun.j2me.app-descriptor

AddType  application/java-archive

You need to add these to your .hataccess file of directory in which these files are if using apache server.