Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2005

    strange behavior on sending jar file via WAP for different mobile network

    I am a content provider sharing java games. I have 3 problems now:

    1) I have some problem delivery the jar file (jad file is ok) for different operators in my country. I do use the same file, the same mobile phone but different sim card (for different operators), we tested on Nokia 6230 and Nokia 6600. Two operators work just find however, there is one operator which always reports invalid file. I first think of the file size however after sending file size of 56K, the problem still persists, "invalid file". I felt the the mobile downloaded the whole file before.

    2) Invalid file problem on Nokia 6230. I put a game with size around 61.3K in the mysql database, then query it with PHP when delivery. Once, I got always error "invalid file" reports, however, after recompile and change something in the code, with file size 62.1K, it works file. I also tested 61.3K via bluetooth, it works fine too. I wonder if they are some byte order or bit stuffing problem there.

    Thank you.

  2. #2
    Super Contributor
    Join Date
    Mar 2003

    Re: strange behavior on sending jar file via WAP for different mobile network

    Is the problem operator (their WAP gateway) doing something to the MIME type header (assuming your own server is sending the correct MIME type for .jar/.jad files) along the way to the phone?

    Some phones (as well as operators) have limits to the max download size.

    For the 6230 the max .jar size is stated to be 125KB on http://forum.nokia.com/main/0,,018-2...tml?model=6230

    No fixed file size limit on the 6600 (limited by amount of available memory only).

    You said you have three problems, but wrote only about two.

  3. #3
    Registered User
    Join Date
    Aug 2005

    Re: strange behavior on sending jar file via WAP for different mobile network


    Thank you for your answer. The jad and jar file are working properly with 2 mobile operators <- Can I conclude that the server is sending the correct MINE-Type? I tried to load game from other provider using the problem operator, that game has the file size of 15xK and it works just fine.

    So, I think that it should be my fault somewhere. I really have no idea how to debug it since it just doesnt work for this operator. Do you feel anything fishy in my implementation?

    Sending the file, I have PHP code as follow (for jar):

    header('Content-type: application/java-achieve');
    header('Content-Disposition: attachment; filename="'.$data['FileName'].'"');
    echo $data['data'];

Similar Threads

  1. Mobile Network Latency
    By aeichler in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2003-06-16, 15:18
  2. File too large to download using WAP
    By nlecomte in forum Symbian
    Replies: 0
    Last Post: 2003-04-29, 07:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts