<?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>Query on Base64 Document Database Integration plugin</title><link>https://community.appian.com/discussions/f/plug-ins/12845/query-on-base64-document-database-integration-plugin</link><description>Hi All, 
 
 I am using Base64 Document Database Integration plugin to read base64 encrypted String and convert it to appian document. The base64 string is roughly 90,000 character long which I&amp;#39;ll have to push to database (Appian cloud database), Appian</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Query on Base64 Document Database Integration plugin</title><link>https://community.appian.com/thread/57646?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 09:52:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a523cb79-6d2a-4ec9-9c92-9a1ffcce2047</guid><dc:creator>arjunm497</dc:creator><description>&lt;p&gt;Hi Robert,&lt;br /&gt; &lt;br /&gt; Thanks for the information. I just had another query - We receive the document from a payload in form of base64 string which we are required to convert to a document and dump it in Appian&amp;#39;s Knowledge center. Is this action supported by this plugin?&lt;/p&gt;
&lt;p&gt;The payload to trigger Appian process (exposed as a Web API) is as follows:&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;quot;clientId&amp;quot;:&amp;quot;Abc&amp;quot;,&lt;/p&gt;
&lt;p&gt;&amp;quot;base64Document&amp;quot;:&amp;quot;&amp;lt;Base64 String&amp;gt;&amp;quot;,&lt;/p&gt;
&lt;p&gt;&amp;quot;documentExtension&amp;quot;:&amp;quot;docx&amp;quot;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; Thanks,&lt;br /&gt; Arjun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query on Base64 Document Database Integration plugin</title><link>https://community.appian.com/thread/57615?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 18:46:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:51d859b1-e12e-49ca-95ac-3419a4141b87</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;Hi Arjun -&lt;/p&gt;
&lt;p&gt;When you transfer documents to your cloud database, you won&amp;#39;t use a CDT.&lt;/p&gt;
&lt;p&gt;The plugin smart service parameter for both insert document and query document should be SQL, and not a CDT reference.&lt;/p&gt;
&lt;p&gt;Essentially, it&amp;#39;s &amp;quot; take this doc id and intsert it into this database table&amp;quot; AND &amp;quot;select this base64 sting (document) and put it in this target folder&amp;quot;.&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="sql"&gt;--to retrieve the document using Get Base64 Document from Database node
&amp;quot;select base64 from myschema.mytable where docid = &amp;#39;&amp;quot;&amp;amp; pv!docid&amp;amp;&amp;quot;&amp;#39;&amp;quot;

--to put a document in the database
=&amp;quot;insert into myschema.mytable VALUES (:documentId, :title)&amp;quot;
-- where documentId and title are node input parameters that you set in the smart service itself&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To address the large size of your base64 string in your cloud mySQL database, create a table with a column of type longtext or longblob.&amp;nbsp;&amp;nbsp;&lt;br /&gt;Either should have enough capacity.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>