<?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 Transformer for application/octet-stream in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transformer-for-application-octet-stream/m-p/302591#M255721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello guys!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to achieve my goal, transform a .msg (Outlook Email).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I want to create a rendition for the mail body at least.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ContentTransformer transformer = contentService.getTransformer(actualMimetype, MimetypeMap.MIMETYPE_PDF);&lt;BR /&gt;if (transformer == null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG.warn("no transformer found to transform from " + actualMimetype + " to application/pdf");&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; render = renditionService.render(destNodeRef, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "pdf"));&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;BR /&gt;&lt;SPAN&gt;The problem is, I can't transform a 'application/octet-stream' due to documentation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;"application/octet-stream and application/oda - bin, oda&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These formats cannot be transformed into, or generated from, any other format."&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone has a solution to create a rendition for a 'application/octet-stream' file ? Or can I change the file into a other mimetype?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 08:44:24 GMT</pubDate>
    <dc:creator>alfrescot3ster</dc:creator>
    <dc:date>2016-06-28T08:44:24Z</dc:date>
    <item>
      <title>Transformer for application/octet-stream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transformer-for-application-octet-stream/m-p/302591#M255721</link>
      <description>Hello guys!I want to achieve my goal, transform a .msg (Outlook Email).So I want to create a rendition for the mail body at least.ContentTransformer transformer = contentService.getTransformer(actualMimetype, MimetypeMap.MIMETYPE_PDF);if (transformer == null) {&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG.warn("no transformer found to t</description>
      <pubDate>Tue, 28 Jun 2016 08:44:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transformer-for-application-octet-stream/m-p/302591#M255721</guid>
      <dc:creator>alfrescot3ster</dc:creator>
      <dc:date>2016-06-28T08:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Transformer for application/octet-stream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transformer-for-application-octet-stream/m-p/302592#M255722</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;application/octet-stream can be roughly considered as "a binary file that I don't understand" - this is basically used by Alfresco by default for files that it can't determine the mimetype of e.g. a file with an extension that it doesn't recognise.&amp;nbsp; As far as I know it uses the mimetype-map.xml file to hold a list of the default mime types and file extensions that it's aware of - this file lives in the alfresco-data-model.jar file these days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, there is already a mimetype mapping in the file that maps the .msg file extension to "application/vnd.ms-outlook", so I'm not sure why you're seeing application/octet-stream.&amp;nbsp; What exactly are you doing to create your rendition and what content are trying to transform?&amp;nbsp; Does your email have a .msg extension?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 23:22:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transformer-for-application-octet-stream/m-p/302592#M255722</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-06-28T23:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Transformer for application/octet-stream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transformer-for-application-octet-stream/m-p/302593#M255723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thx for the hint. The mimetype was sent from the frontend and it does not recognize the .msg mimetype &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;. Now it works quite good with 'application/vnd.ms-outlook'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have a other problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ContentWriter writer = contentService.getWriter(destNodeRef, ContentModel.PROP_CONTENT, true);&lt;BR /&gt;writer.setMimetype(mimetype);&amp;nbsp; // mimetype = 'application/vnd.ms-outlook'&lt;BR /&gt;writer.setEncoding("UTF-8");&lt;BR /&gt;writer.putContent(content);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;BR /&gt;&lt;SPAN&gt;But the encoding is still wrong, he can't decode 'ä', 'ü' and so on. Someone knows the solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second thing, how can I get the attachments of an email? I used 'MailMetadataExtracter' to extract the metadatas, but I am not able to get the attachments. Someone knows that too?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 05:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transformer-for-application-octet-stream/m-p/302593#M255723</guid>
      <dc:creator>alfrescot3ster</dc:creator>
      <dc:date>2016-06-30T05:57:00Z</dc:date>
    </item>
  </channel>
</rss>

