<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get the mime type of a file? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27655#M13926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to look at the value of the content property returned in the query results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a normal content type node this is {&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Its value should look something like this …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; contentUrl=store://2006/4/26/16/a874f499-d539-11da-a07f-7f7271fd4b4e.bin|mimetype=text/plain|size=652|encoding=UTF-8&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see it is a string made up of the content location URL, the encoding and mimetype.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently there is no helper in the client to extract this information for you ( perhaps you counld add it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) but you should be able to extract the mime type fairly easily.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 May 2006 10:33:17 GMT</pubDate>
    <dc:creator>rwetherall</dc:creator>
    <dc:date>2006-05-02T10:33:17Z</dc:date>
    <item>
      <title>How to get the mime type of a file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27652#M13923</link>
      <description>Hi,I want to get the mime type of a file when I get a ResultSet from the WebService. I searched, but it's not in the columns of the row..Here is my code :QueryResult rootChildren = WebServiceFactory.getRepositoryService().queryChildren(refEspaceAlfresco);&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultSet rootChildrenResults = rootChild</description>
      <pubDate>Wed, 12 Apr 2006 15:32:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27652#M13923</guid>
      <dc:creator>sam69</dc:creator>
      <dc:date>2006-04-12T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the mime type of a file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27653#M13924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nobody can answer me ? Or show me a ressource for webservice help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I the Alfresco Webservice wiki page don't help me a lot. And I found the class structure not intuitive&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Web services sample are great, but not very complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 12:51:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27653#M13924</guid>
      <dc:creator>sam69</dc:creator>
      <dc:date>2006-04-27T12:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the mime type of a file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27654#M13925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I manage to gess the mime type with the file extension, but it's not a really good way, if the mime type is stocked somewere..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 15:00:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27654#M13925</guid>
      <dc:creator>sam69</dc:creator>
      <dc:date>2006-04-27T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the mime type of a file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27655#M13926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to look at the value of the content property returned in the query results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a normal content type node this is {&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Its value should look something like this …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; contentUrl=store://2006/4/26/16/a874f499-d539-11da-a07f-7f7271fd4b4e.bin|mimetype=text/plain|size=652|encoding=UTF-8&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see it is a string made up of the content location URL, the encoding and mimetype.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently there is no helper in the client to extract this information for you ( perhaps you counld add it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) but you should be able to extract the mime type fairly easily.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 10:33:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27655#M13926</guid>
      <dc:creator>rwetherall</dc:creator>
      <dc:date>2006-05-02T10:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the mime type of a file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27656#M13927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your answer ! I already saw the mime-type here, but I though there was a better way…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anymay, I keep the file-type extraction with the file extension, because it's enough for me, but maybe later &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 11:00:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27656#M13927</guid>
      <dc:creator>sam69</dc:creator>
      <dc:date>2006-05-02T11:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the mime type of a file?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27657#M13928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any solution to open a file with the proper software ? The .bin extension launchs a specific program which can't read the file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've thought to create a copy of the file and rename the .bin with the mimetype informations, but I would like to know if there is a faster way to do it ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2006 12:14:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-mime-type-of-a-file/m-p/27657#M13928</guid>
      <dc:creator>darkhope</dc:creator>
      <dc:date>2006-05-22T12:14:34Z</dc:date>
    </item>
  </channel>
</rss>

