×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    8

    Red face How to download a file to Nokia Phone with WML?

    Could anyone teach me how to write a coding for downloading some files (e.g. mp3, wav) from my wap server to Nokia phone. I saw a coding <a href="{your file link}">Click here to download</a>. I tried it, but failed to do it. Thx!

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: How to download a file to Nokia Phone with WML?

    Make sure your server is configured to send the correct MIME type header(s) for the file types you want people to download.

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    8

    Re: How to download a file to Nokia Phone with WML?

    Pls tell me how to find the correct MIME type headers for the file I want to download?
    Do I need to pay money for these coding? Thx again!

  4. #4
    Registered User
    Join Date
    Mar 2006
    Posts
    5

    Re: How to download a file to Nokia Phone with WML?

    Check your headers with delorie.com .. you'll need to put an html file on the server (no bytes will do fine).
    Do you have control of server to any degree (webhost may need to be asked)?

    If yes, then alter the httpd.config file to include the MIME type header info when coming across those filetypes you want serving.

    If you can use .htaccess type files, then add in the MIME type directives in there.

    i.e. if you can already wserve wml / wap and wbmp files then you are halfway there...

    Check the phone you are developing for- for the MIME types it accepts...
    audio/mid, audio/midi, audio/x-mid, audio/x-midi, audio/sp-midi, audio/amr, audio/3gpp, audio/mpeg3, audio/x-mpeg-3, audio/wav, audio/x-wav. heres a few audio related ones and add these as directives in /htaccess or your servers config file.. They are phone dependant remember so just because your server can doit, don't mean your phone can.

    if as .htaccess then add this to your htaccess file/ create new
    Code:
    # add MIME type for mp3
    
    AddType audio/mpeg3 mp3 .mp3
    
    # End MP3 MIME Types for WAP
    You may want to add these in separate directorys as some conflict can occur.

    Code:
    # add MIME type for mp3
    
    AddType audio/x-mpeg-3 mp3 .mp3
    
    # End MP3 MIME Types for WAP



    <a href="http://www.developershome.com/wap/detection/detection.asp?page=httpHeaders">Good Resource</a>

    Code:
    http://www.developershome.com/wap/detection/detection.asp?page=httpHeaders
    Last edited by loverofsith; 2006-03-16 at 09:56.

Similar Threads

  1. Nokia 9210 PC Suite & Nokia 9210 issues
    By Nokia_Archive in forum Symbian
    Replies: 4
    Last Post: 2007-09-22, 00:19
  2. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58
  3. Infra-red capability
    By Symbian_Challenge_0412 in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-16, 18:24
  4. how can I download J2ME applications into my nokia 6310 phone??
    By esquelle in forum Mobile Java General
    Replies: 1
    Last Post: 2002-08-04, 05:11

Posting Permissions

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