Share

Java Mime Magic Library

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Matching DWF/DWG files

You are viewing a single message from this topic. View all messages.

  1. 2008-11-25 10:40:54 UTC
    Hello.

    I'm using jmimemagic to see the real mime type of a file. However i need to see the mime type for DWG and DWF files.
    I searched and it seems that i have this:

    dwf: drawing/x-dwf
    dwg: image/vnd

    How can i create a match for this? In magic.xml file

    <match>
    <mimetype>drawing/x-dwf</mimetype>
    <extension>dwf</extension>
    <description>dwf file</description>
    <test offset="0" type="belong" comparator="=">0x1ba</test>
    </match>

    and

    <match>
    <mimetype>image/vnd</mimetype>
    <extension>dwg</extension>
    <description>MPEG system stream data</description>
    <test offset="0" type="belong" comparator="=">0x1ba</test>
    </match>

    will work? i'm asking because i can't test.... maven2 can't build this package :(

    Thanks
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.