×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    10

    6136 - recognising .dcf file format

    Hi all,
    I read from Browser MIME Types in Nokia GSM Devices that 6136 recognise .dcf filetypes. However when I try to download a .dcf file format, the extension of the file became .EXT and after dowloading sucess, the phone display "Unknow file format".
    Does anyone knows why the extension changes itself? And y it does not recognise the .dcf file?

    Many thanks.

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: 6136 - recognising .dcf file format

    What is the OMA version you are using? 6136 supports OMA DRM 1.0.

    Hartti

  3. #3
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: 6136 - recognising .dcf file format

    Hi ilovedisneyland (really? me too)

    6136 does support .dcf file and OMA DRM 1.0. The error you're experiencing probably is happening because your web server does not have the correct mime types set. This way the 6136 browser downloads a stream of bytes of which it does not know the type.

    Here are the mime types you need to configure on the server:

    application/vnd.oma.drm.message dm
    application/vnd.oma.drm.content dcf

    Daniel

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    10

    Re: 6136 - recognising .dcf file format

    how can I check which OMA version I am using?
    I am using tomcat as my server. I have added the MIME for odf and dcf:
    <mime-mapping>
    <extension>odf</extension>
    <mime-type>application/vnd.oasis.opendocument.formula</mime-type>
    </mime-mapping>

    <mime-mapping>
    <extension>dcf</extension>
    <mime-type>application/vnd.oma.drm.content</mime-type>
    </mime-mapping>

    but it still can't work.
    It still give me the same problem.

    Is there anything I missed out?

    Thanks.

  5. #5
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: 6136 - recognising .dcf file format

    I think you have to use a raw http client to request the file and check the headers, to see if the mime type is correctly set.

    Something like this: http://web-sniffer.net/

    Daniel

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    10

    Re: 6136 - recognising .dcf file format

    Dear Daniel,

    How should I go about using http://web-sniffer.net/?.

    I tried google.com in the web-sniffer and saw HTTP Request Header and HTTP Response Header information.
    However, when I tried to access a .jsp page from my application that is residing in the tomcat server, I was not able to see any HTTP Request Header and HTTP Response Header information. Instead I "game-boy" look-alike box was shown :
    " GET / HTTP/1.1
    HOST: localhost
    Connection:close
    User-Agent: present

    HTTP/1.1 200 OK
    Server: GAME BOY
    Content-Length: 42
    "
    What does the above results explaining?

    Is there anything I missed out or did wrongly? Or was it the way testing web-sniffer was incorrect?

    Thanks.
    shan
    Last edited by ilovedisneyland; 2006-10-12 at 04:36.

  7. #7
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: 6136 - recognising .dcf file format

    Is your Tomcat server accessible to the external world? It must be for Web Sniffer to work. If it is, perhaps you should try an HTML file first?

    Otherwise, you'll have to write a quick application that iterates over the response headers to find out what kind of mime type (Content-Type header) is being returned for the .dcf file.

    Remember that .dcf files are only recognized by the device's browser, so you really need to put the file on a web server which is accesible to the outer world so your phone can "see" it.

    Daniel

  8. #8
    Registered User
    Join Date
    Sep 2006
    Posts
    10

    Re: 6136 - recognising .dcf file format

    My tomcat can is avaliable to the outside world.
    This is the result I have from http://web-sniffer.net/?.

    I am testing using the a .odf file. Tomcat seems to regconise the MIME. But when I tried to download using the nokia 6136 emulator, the .odf file is converted to .EXT file.

    HTTP Request Header
    Connect to 218.186.239.226 on port 8080 ... ok

    GET /drm/ringtone/index.odf HTTP/1.1[CRLF]
    Host: 218.186.234.226[CRLF]
    Connection: close[CRLF]
    Accept-Encoding: gzip[CRLF]
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-gsarcade-launch, application/x-shockwave-flash, */*[CRLF]
    Accept-Language: en-us[CRLF]
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215) Web-Sniffer/1.0.24[CRLF]
    Referer: http://web-sniffer.net/[CRLF]
    [CRLF]
    HTTP Response Header
    Name Value Delim
    HTTP Status Code: HTTP/1.1 200 OK
    ETag: W/"332-1148510712000" CRLF
    Last-Modified: Wed, 24 May 2006 22:45:12 GMT CRLF
    Content-Type: application/vnd.oasis.opendocument.formula CRLF
    Content-Length: 332 CRLF
    Date: Fri, 20 Oct 2006 13:31:22 GMT CRLF
    Server: Apache-Coyote/1.1 CRLF
    Connection: close CRLF

    Does anyone knows what is the reason that the extension changes when download to the emulator?

    Thanks

  9. #9
    Registered User
    Join Date
    Sep 2006
    Posts
    10

    Re: 6136 - recognising .dcf file format

    Dear all,
    does anyone knows why an .odf file is converted to .EXT after download to 6136 emulator?
    Please help.
    Thanks.

  10. #10
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: 6136 - recognising .dcf file format

    Hi,

    I'm still thinking about what you're trying to achieve here. Your post title is "recognizing .dcf file format", but you're trying to download a .odf file?

    That's the deal: 6136 does support DRM, that means .dm, .dcf and .dr files. Of course those are only packaging files, and the data they contain may ou may not be supported by the phone.

    Two things from your last post:

    - ODF (Open Document Formula) is not supported by 6136. That's why it's getting converted to .ext.
    - If you want apply DRM to something, like an image, you have to package it in a .dm or .dcf file and then make this file available for download. When it's downloaded by the browser, if the underlying content type is supported, the file will be installed; otherwise, you'll get a similar result you're getting now.

    []s
    Daniel

  11. #11
    Registered User
    Join Date
    Mar 2003
    Posts
    12

    Re: 6136 - recognising .dcf file format

    Thanks for your share

Similar Threads

  1. S60 theme questions
    By Nokian_Spb in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-08-17, 06:11
  2. Question about the format of mid file
    By linjunan in forum Audio
    Replies: 4
    Last Post: 2004-03-17, 07:26
  3. Different file format when transferring through IrDA and GPRS?
    By lesio01 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2004-02-26, 18:55
  4. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22

Posting Permissions

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