Hello Evgeni,
that is correct because the format is not in the bitstream format
registry thus becomes Unknown application/octet-stream.
Add the format to your registry and the bitstream format will be set
correctly.
Hope this helps
Claudia Jürgen
Am 26.03.2018 um 17:04 schrieb Evgeni Dimitrov:
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?
--
Claudia Juergen
Eldorado
Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund
Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
[email protected]
www.ub.tu-dortmund.de
Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen
Schriftstücks per Telefax erfolgen.
Important note: The information included in this e-mail is confidential. It is
solely intended for the recipient. If you are not the intended recipient of
this e-mail please contact the sender and delete this message. Thank you.
Without prejudice of e-mail correspondence, our statements are only legally
binding when they are made in the conventional written form (with personal
signature) or when such documents are sent by fax.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.