<?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: Deploy static images in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217879#M171009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry I meant I tried &amp;lt;code&amp;gt;&amp;lt;img src="src/main/recources/images/logo.png" /&amp;gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2016 13:12:10 GMT</pubDate>
    <dc:creator>jorge_serrao</dc:creator>
    <dc:date>2016-02-23T13:12:10Z</dc:date>
    <item>
      <title>Deploy static images</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217878#M171008</link>
      <description>Hi,I'm trying to send an e-mail throughout Activiti and put my company's logo as an image, using HTML.I deployed a bar files which contains the BPMN processes in src/main/resources/diagrams and the logo in src/main/resources/images.Once deployed I can see that the image was deployed but I didn't fig</description>
      <pubDate>Tue, 23 Feb 2016 13:10:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217878#M171008</guid>
      <dc:creator>jorge_serrao</dc:creator>
      <dc:date>2016-02-23T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy static images</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217879#M171009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry I meant I tried &amp;lt;code&amp;gt;&amp;lt;img src="src/main/recources/images/logo.png" /&amp;gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 13:12:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217879#M171009</guid>
      <dc:creator>jorge_serrao</dc:creator>
      <dc:date>2016-02-23T13:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy static images</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217880#M171010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jorge,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can use &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.RepositoryService#getResourceAsStream&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 07:50:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217880#M171010</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-24T07:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy static images</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217881#M171011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this before but it didn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I invoke the &amp;lt;code&amp;gt;getResourceAsStream&amp;lt;/code&amp;gt; method it will retrieve me a ByteArrayInputStream.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried transform the ByteArrayInputStream to a String base 64 and link this to the html img tag but apparently Gmail and Outlook block this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I decided to link the image to the tag so what I have done was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 - Invoke the Activiti Rest API and then linked the content-url to the src of the html image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It didn't work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To workout why it didn't work I invoked the URL on Chrome and and received the bytes back which means the browser didn't rendered the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to exclude the option of attaching the image into the e-mail and then use HTML to display the image because I would need to implement the functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any other ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 10:58:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217881#M171011</guid>
      <dc:creator>jorge_serrao</dc:creator>
      <dc:date>2016-02-26T10:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy static images</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217882#M171012</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;create simple jUnit test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;create and deploy a deployment with the static image.&lt;/LI&gt;&lt;LI&gt;ready bytes from the input stream and store them into the file.&lt;/LI&gt;&lt;LI&gt;check the file content (it should be the same as the deployed static image)&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;This test should provide you the proof that Repository service is able to store static image in the deployment and provide its content back to you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 08:25:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217882#M171012</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-29T08:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy static images</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217883#M171013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code seems work, I think that the e-mail client is blocking the image along with the html form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They might do it due to security issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 08:41:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploy-static-images/m-p/217883#M171013</guid>
      <dc:creator>jorge_serrao</dc:creator>
      <dc:date>2016-02-29T08:41:51Z</dc:date>
    </item>
  </channel>
</rss>

