In DSpace 6.2
I am ingesting separately two items each one with its own mets.xml.

in the first mets.xml
    <fileGrp ADMID="amdid_02" USE="ORIGINAL">
      <file GROUPID="gid_20001" ID="fid_20001" MIMETYPE="video/quicktime"
SEQ="20001">
        <FLocat LOCTYPE="URL" xlink:href="mysterio1.mov"/>
      </file>
    </fileGrp>

in the second mets.xml
    <fileGrp ADMID="amdid_02" USE="ORIGINAL">
      <file GROUPID="gid_20001" ID="fid_20001" MIMETYPE="video/mp4"
SEQ="20001">
        <FLocat LOCTYPE="URL" xlink:href="mysterio1.mp4"/>
      </file>
    </fileGrp>

Later in an application I want to get the mimetype of the bitstream:

    Bitstream bitstream = bitstreamService.find(context, bitstreamID);
    String mimeType = bitstreamService.getFormat(context,
bitstream).getMIMEType();

For the first I get "video/quicktime".
For the second I get "application/octet-stream".

Should it be this way?

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to