<?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: Help：how to show PNG image of a process using REST api? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136790#M95947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't understand how an image can be 'too big' to be displayed? Does the server return wrong data?&lt;BR /&gt;&lt;BR /&gt;That being said, Tijs is currently working on integrating a javascript only process diagram viewer in Explorer, might be worthwhile to check that out.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your quick reply!~ Too big means that even though some browsers like Chrome is able to display image that written in BASE-64 code, this code can not be too long. Unfortunately, images of processes of Activiti are beyond that limitation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to know is quite simple: is there any effective javascript or HTML code that can let the browser display the PNG image generated from REST APIs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again~&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 02:01:19 GMT</pubDate>
    <dc:creator>jolly_ian</dc:creator>
    <dc:date>2013-02-20T02:01:19Z</dc:date>
    <item>
      <title>Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136788#M95945</link>
      <description>I want to create an HTML website using the REST APIs with JQuery and Ajax. Till now every thing works fine except that I cannot display the image of a process in HTML client.The problem originates from the fact that the rest API itself is the url to the image, but when I set the source of the image</description>
      <pubDate>Sun, 17 Feb 2013 03:00:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136788#M95945</guid>
      <dc:creator>jolly_ian</dc:creator>
      <dc:date>2013-02-17T03:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136789#M95946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't understand how an image can be 'too big' to be displayed? Does the server return wrong data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That being said, Tijs is currently working on integrating a javascript only process diagram viewer in Explorer, might be worthwhile to check that out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 08:53:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136789#M95946</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-18T08:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136790#M95947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't understand how an image can be 'too big' to be displayed? Does the server return wrong data?&lt;BR /&gt;&lt;BR /&gt;That being said, Tijs is currently working on integrating a javascript only process diagram viewer in Explorer, might be worthwhile to check that out.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your quick reply!~ Too big means that even though some browsers like Chrome is able to display image that written in BASE-64 code, this code can not be too long. Unfortunately, images of processes of Activiti are beyond that limitation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to know is quite simple: is there any effective javascript or HTML code that can let the browser display the PNG image generated from REST APIs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again~&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 02:01:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136790#M95947</guid>
      <dc:creator>jolly_ian</dc:creator>
      <dc:date>2013-02-20T02:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136791#M95948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I see your problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One really ugly hack which might work is to load your image with something like image.src = '&lt;/SPAN&gt;&lt;A href="http://" pass="pass" someurl="someUrl" user="user" rel="nofollow noopener noreferrer"&gt;http://'+user+':'+pass+'@'+someUrl&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;But that's not really nice of course as it exposes the user and pass in the open. I did not test this though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it raises an interesting question: what is a good solution for this? Definitely not the way it is implemented now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One way could be we need tokens in the url. Or something else … I'll discuss it with the team.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 12:12:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136791#M95948</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-20T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136792#M95949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, there are two use cases here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- rest is used by another service (not html): then the security is importent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- rest is used from html/js: in this case the current solution is not workable. So we will remove security from that specific operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Facebook also exposes your pics if you know the url! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 14:05:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136792#M95949</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-20T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136793#M95950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Okay, there are two use cases here:&lt;BR /&gt;&lt;BR /&gt;- rest is used by another service (not html): then the security is importent&lt;BR /&gt;- rest is used from html/js: in this case the current solution is not workable. So we will remove security from that specific operation.&lt;BR /&gt;&lt;BR /&gt;Hey Facebook also exposes your pics if you know the url! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Haha~ I see. You mean that the REST APIs were originally designed for another service, not HTML. This is the reason why I cannot load the image in my browser. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your kind reply! I hope you could let me know if this security problem is solved. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 02:46:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136793#M95950</guid>
      <dc:creator>jolly_ian</dc:creator>
      <dc:date>2013-02-26T02:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136794#M95951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, we've removed security from that service on master. So in 5.12 it will be possible to fetch without any security.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 10:03:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136794#M95951</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-26T10:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136795#M95952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar problem with the URL /repository/process-definition/{id}/image. I'd like the use the URL from the processDefinition JSON fetch and let the browser show the image by adding /image to the URL it already have. That URL is still protected, any chance of having it opened ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 19:50:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136795#M95952</guid>
      <dc:creator>sergiolog10</dc:creator>
      <dc:date>2015-04-29T19:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help：how to show PNG image of a process using REST api?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136796#M95953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what you mean, it's open : &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/repository/ProcessDefinitionImageResource.java#L36" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/repository/ProcessDefinitionImageResource.java#L36&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 12:28:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-show-png-image-of-a-process-using-rest-api/m-p/136796#M95953</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-05-07T12:28:31Z</dc:date>
    </item>
  </channel>
</rss>

