Re: [dspace-tech] Bitstreams mimetype
Thank you Claudia, It works now. Best regards Evgeni On Monday, March 26, 2018 at 6:14:03 PM UTC+3, Claudia Jürgen wrote: > > 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 > > > > MIMETYPE="video/quicktime" > > SEQ="20001"> > > > > > > > > > > in the second mets.xml > > > > > SEQ="20001"> > > > > > > > > > > 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 > claudia...@tu-dortmund.de > 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 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.
Re: [dspace-tech] Bitstreams mimetype
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 in the second mets.xml 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 claudia.juer...@tu-dortmund.de 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 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.
[dspace-tech] Bitstreams mimetype
In DSpace 6.2 I am ingesting separately two items each one with its own mets.xml. in the first mets.xml in the second mets.xml 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.