<?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>Web API - Send binary string of document</title><link>https://community.appian.com/discussions/f/integrations/14913/web-api---send-binary-string-of-document</link><description>Hello! When sending a document via a Web API, I am aware that the document is sent via binary streaming. When received by the calling system, the document itself is received. Is there a configuration of httpHeaders in Appian that would send the binary</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Web API - Send binary string of document</title><link>https://community.appian.com/thread/66763?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 15:44:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6fedf260-cf02-4d59-a7c6-1c6a63adbde3</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;Thanks - I follow you now, &lt;a href="/members/glennw"&gt;glennw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So - if you&amp;#39;re already leveraging the database with good reason - I wonder if you might consider base64 instead of binary.&lt;br /&gt;Typically, as I understand it, in general, a better use case for binary is when you&amp;#39;re intent is to stream the binary string to an immediate materialization of a document.&amp;nbsp; (I&amp;#39;m open to dialog on that point, though).&lt;/p&gt;
&lt;p&gt;If the 3rd party system supports base64 to document conversion you&amp;#39;re practically home free.&lt;/p&gt;
&lt;p&gt;Check out this &lt;a href="/b/appmarket/posts/base64-document-database-integration" rel="noopener noreferrer" target="_blank"&gt;shared component&lt;/a&gt;, base64 document database tools.&amp;nbsp; When you visit the shared component page, make sure to scoll down to the bottom and grab the documentation on how to operate the smart services enabled by the plugin.&lt;br /&gt;With the &amp;quot;insert document as base64 into database&amp;quot; smart service, you can insert the document as well as all the metadata you want into a single table in one statement.&amp;nbsp; From there, the third party system can pick up this data and hopefully convert the base64 string back into doc.&lt;/p&gt;
&lt;p&gt;Keep in mind with your volume, these strings - binary or base64 are going to get large - make sure you account for the disk you&amp;#39;ll use and clean up when you can.&lt;/p&gt;
&lt;p&gt;Does that help?&lt;br /&gt;Thanks,&lt;br /&gt;Rob&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API - Send binary string of document</title><link>https://community.appian.com/thread/66750?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 13:22:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01b5844d-1a45-4167-961c-c0ab573acb35</guid><dc:creator>glennw</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/robert.shankin"&gt;Robert Shankin&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;My apologies for the lack of clarity! I am trying to migrate approximately 350K documents from Appian to an external application. As the business has a number of production applications within Appian, we are trying to minimize the load (and any disruptions to other applications) on Appian while the migration is occurring.&lt;/p&gt;
&lt;p&gt;Each document has some additional metadata (Appian Doc ID, Document Type, Audit fields, etc.) in a AppianBusiness DB table, so my thought was to migrate that table (as there is a data migration occurring as well), create a Web API to take in the Appian document ID as a parameter, and return the document to the external application that is making the call. Due to some other constraints at the moment, the external application would be writing the document to a DB table&amp;nbsp;as a binary string. I was hoping I would be able to return the binary string from the Web API.&lt;/p&gt;
&lt;p&gt;I hope this is a little more clear! Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API - Send binary string of document</title><link>https://community.appian.com/thread/66746?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 21:34:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f990d7c6-693d-4778-b0dd-6f20e6b8c452</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;Glenn -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;can you be a little more precise in your language?&lt;/p&gt;
&lt;p&gt;It helps to understand exactly which system your sending from or calling from.&lt;/p&gt;
&lt;p&gt;As written, the exact nature of your use case is unclear.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>