<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Display Binary as download link</title><link>https://community.appian.com/discussions/f/integrations/38721/display-binary-as-download-link</link><description>Hello we have integration with an external system and once we add the document, we use Get file to retrieve the document. 
 In the Get File Integration if I use convert Binary to Appian document it works fine and stores the document in Appian. 
 But we</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Display Binary as download link</title><link>https://community.appian.com/thread/146349?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 20:30:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9a226bb-8534-4aac-87d9-451754e2a5c8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Like &lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;&amp;nbsp;already said, if you want to download a file through Appian, the file has to be stored in Appian first.&lt;/p&gt;
&lt;p&gt;If that is a problem, store the files in a temporary folder and clean that up in a certain interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Binary as download link</title><link>https://community.appian.com/thread/146348?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 20:28:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dedcecb6-2106-4251-b982-246150cc2956</guid><dc:creator>sirishar0001</dc:creator><description>&lt;p&gt;Actual document resides in the external system. We cannot acquire a URL unfortunately. We have a getFile integration call that gives us the byte Array corresponding to the document contents. We need a way to display that in Appian UI (preferably all this happens when you click a link on document name :()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Binary as download link</title><link>https://community.appian.com/thread/146339?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 18:04:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9576391-41a7-4093-8ed4-b44e2afaa9ca</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="67455" url="~/discussions/f/integrations/38721/display-binary-as-download-link/146337"]if we get back the binary of the document?[/quote]
&lt;p&gt;Can you specify what this means?&amp;nbsp; For instance what exactly do you mean by &amp;quot;get back&amp;quot;?&amp;nbsp; Where is the actual document going to be residing when you want it downloaded?&amp;nbsp; If it&amp;#39;s only going to be located on the external system (since you say you&amp;#39;re not allowed to temporarily send it to the Appian filesystem), you would need a way to acquire a URL to the document download from within that external system (assuming that&amp;#39;s even possible), and transfer said URL into Appian, which you could then display in Appian via a SafeLink, for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Binary as download link</title><link>https://community.appian.com/thread/146337?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 16:44:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ff82acd-9bca-4d77-a882-d1aab0148532</guid><dc:creator>sirishar0001</dc:creator><description>&lt;p&gt;Ok if we cannot use Document Download Link is there another way to provide a document download from external system if we get back the binary of the document?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Binary as download link</title><link>https://community.appian.com/thread/146336?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 16:25:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a678b40-7e7b-4fdc-9433-839cb6b9fd77</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Then your requirements seem to be in conflict with each other - you will need to decide which path you want to take, because you can not do both things at once.&lt;/p&gt;
&lt;p&gt;If you really can&amp;#39;t store the document in Appian (even temporarily), then you won&amp;#39;t be able to use Document Download Link at all, since it is only for documents stored in the Appian filesystem.&amp;nbsp; The best you&amp;#39;ll be able to do is have Appian display a valid URL to download the document from its original (external) location.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Binary as download link</title><link>https://community.appian.com/thread/146335?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 16:15:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b15f617-58ac-4532-87fc-90da417aad01</guid><dc:creator>sirishar0001</dc:creator><description>&lt;p&gt;Our use case is documents are stored in another content management system and when we view a record (like vendor/customer record) we only need to show links to the documents and clicking on the link should download the document from the external content management system. We cannot store document in Appian and delete since we do not know how long we need it for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Binary as download link</title><link>https://community.appian.com/thread/146333?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 16:03:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6bc0a907-43c3-4c48-b6f3-441be4ed7c2b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Note if you have a valid Appian Document ID, the document is already stored within the Appian filesystem, and using todocument() on it is irrelevant.&amp;nbsp; Also there is no need to wrap the document ID in todocument() for use in a!documentDownloadLink, all that&amp;#39;s required is a valid ID.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re getting an &amp;quot;ID not found&amp;quot; error, your issue is something deeper, which you will need to address.&amp;nbsp; And there is no way to provide a download link without making a valid copy into Appian - if you don&amp;#39;t want the file to persist, I suggest incorporating a timer in your process that handles the copy, which auto-deletes the downloaded document after some amount of time has passed (after which you can assume the user has had plenty of time to download a copy on-form).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>