BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-22-2008, 01:44 PM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8830
PIN: N/A
Carrier: AT&T & Verizon
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with OTA install file.

Please Login to Remove!

Thanks for looking.

We created an application that runs fine when installed directly on the BB using the .cod file. When using the .jad OTA we get the following messages:

The item you selected cannot be displayed. Do you wish to save the item?

When we say no we get:

Unsupported media type:application/octet-stream

Anyone have any idea of what we are doing wrong?

We have a valid license, so that isn't the issue.

Any thoughts would be most helpful.

Thank you
Offline  
Old 07-22-2008, 01:56 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2008
Model: 8530
Carrier: Verizon
Posts: 455
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wirelessly posted (8130 Pearl)

Where ever you have the file located, the server has the incorrect mime type listed for that file. I don't know what the mime type for .jad files is, but octet stream is generic for an executable.

text/vnd.sun.j2me.app-descriptor is the correct mime-type.

Last edited by Phranc : 07-22-2008 at 02:07 PM. Reason: Spelling and content.
Offline  
Old 07-22-2008, 02:07 PM   #3 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8830
PIN: N/A
Carrier: AT&T & Verizon
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, we will look into the sever config.
Offline  
Old 07-22-2008, 09:11 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

And the jar should get the mime type application/java-archive

Not to pick nits but application/octet-stream means essentially an untyped binary file. Some installations call just about anything an application/octet-stream and assume the receiver will determine the type from the file extension. Not a practice I like, but there isn't much one can do about it. The blackberry seems to be written to correctly act on the mime type rather than the extension.
Offline  
Old 07-22-2008, 09:14 PM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Northern IL
Model: 8330
OS: 4.5
Carrier: Verizon
Posts: 2,076
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you create a file called .htaccess with 2 lines of code (see link below) and put it in the directory with the files, this will solve your problem.

He is a nice guide to help you.

Howto: Setup an Apache Webserver to deliver BlackBerry OTA Applications | BlackBerryInsight
Offline  
Old 07-24-2008, 01:53 PM   #6 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8830
PIN: N/A
Carrier: AT&T & Verizon
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

NickfromIL - worked perfectly, thank you!
Offline  
Old 07-24-2008, 01:54 PM   #7 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Northern IL
Model: 8330
OS: 4.5
Carrier: Verizon
Posts: 2,076
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You're welcome
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.