BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-20-2007, 12:45 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8310
Carrier: China Mobile
Posts: 66
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to publish cod file on web site?

Please Login to Remove!

How to publish alx & cod file on web site, so user can install it from BlackBerry browser. thanks.

also is BES necessary?
__________________
BlackBerry 8300 on China Mobile network
Offline  
Old 12-20-2007, 06:34 AM   #2 (permalink)
Thumbs Must Hurt
 
Spartan115's Avatar
 
Join Date: Aug 2007
Model: Pearl
PIN: N/A
Carrier: T-Mobile
Posts: 80
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Cod

In order to do this you must a.) put your corresponding .JAD and .COD files onto your website. You must then update the MIME-type of your server to recognize .JAD and .COD files. That's it.
Offline  
Old 12-20-2007, 10:25 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Sep 2006
Location: Ontario, Canada
Model: 9700
Carrier: Rogers
Posts: 92
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

If it's a linux server simply add a .htaccess file with the following:

Code:
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/vnd.rim.cod cod
AddType application/java-archive jar
AddType audio/adpcm adp
in the directory that you put all of your .cod, .jad, etc files
__________________
http://www.ryannickel.com for my awesomeness!
Offline  
Old 01-02-2008, 11:07 AM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
hayabusa's Avatar
 
Join Date: Aug 2006
Location: Kansas
Model: 9000
Carrier: Cingular
Posts: 251
Post Thanks: 0
Thanked 0 Times in 0 Posts
Cool

What if the application that you are trying to allow your users to download only has .cod files and no .jad files. I have reuters for example which has a .jad file. create a link on the main page that points directly to the .jad file and I get the common download page which is great. But I have bloomberg that has a ton of .cod files and no .jad files if I create a link that points to the .cod files it just gives a internal server error 500. I have .cod in my mime file types along with .jar and .jad. Is a jad or a jar what you should be statically pointing to or just the directly that the files are in??
Offline  
Old 01-03-2008, 12:09 AM   #5 (permalink)
Thumbs Must Hurt
 
Spartan115's Avatar
 
Join Date: Aug 2007
Model: Pearl
PIN: N/A
Carrier: T-Mobile
Posts: 80
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Reply

Users go to the .jad file with their Blackberry. The .jad file is really an XML file that points the BlackBerry to the place where they can download the .cod file. The advantage of using a .jad file is that it provides other information along with the location of the .cod file such as application name, vendor and version.
__________________
Never Lose Your Blackberry Again With Get It Back
Offline  
Old 01-03-2008, 11:13 AM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
hayabusa's Avatar
 
Join Date: Aug 2006
Location: Kansas
Model: 9000
Carrier: Cingular
Posts: 251
Post Thanks: 0
Thanked 0 Times in 0 Posts
Cool

What if your application doesn't have a jad file. I have a bloomberg app that has nothing but a ton of .cod files. I would like to give my users the option to navigate their internal inttranet browser to my website and download and install the applicaiton but I have no .jad file to point it to.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.