<?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>Base64 to Document</title><link>https://community.appian.com/discussions/f/integrations/18468/base64-to-document</link><description>1. Appian PM has been published as a webservice WSDL. 
 2. 3rd party system to invoke this WSDL by sending in base64 document. 
 3. on Appian PM have to convert the base64 to Appian document. 
 Please suggest</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Base64 to Document</title><link>https://community.appian.com/thread/72699?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 05:46:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae795395-e358-46b1-b18f-828d2f7bd416</guid><dc:creator>Vaisakh V Sekhar</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/ganeshbabuj"&gt;ganeshbabuj&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;There could be different approaches for the same.&lt;/p&gt;
&lt;p&gt;Approach 1:&lt;/p&gt;
&lt;p&gt;If you are using a 19.2+ version of Appian, you can directly convert the base 64 document into an Appian document using an Integration object.&lt;/p&gt;
&lt;p&gt;Please refer this link:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/19.3/Integration_Object.html#receiving-base64-inline-with-json"&gt;https://docs.appian.com/suite/help/19.3/Integration_Object.html#receiving-base64-inline-with-json&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are using a lower version please find below some alternate approaches.&lt;/p&gt;
&lt;p&gt;Approach 2:&lt;/p&gt;
&lt;p&gt;Step 1. Write the Base64 content received in Appian into the database.&lt;/p&gt;
&lt;p&gt;I believe that the extension and the file name for the document is also received&amp;nbsp;in Appian.&lt;/p&gt;
&lt;p&gt;Step 2. Using&lt;b&gt;&amp;nbsp;Get Base64 Document from Database smart service,&lt;/b&gt; retrieve the base 64 value from db, convert the value into an Appian document.&lt;/p&gt;
&lt;p&gt;The smart service returns you the Appian doc ID of the converted document.&lt;/p&gt;
&lt;p&gt;Inputs:&lt;/p&gt;
&lt;p&gt;1. Document Name - The name of the received document.&lt;/p&gt;
&lt;p&gt;2. Format - The extension of the received document.&lt;/p&gt;
&lt;p&gt;3. Jndi Name -Check with data source value provided in your Data Store created.&lt;/p&gt;
&lt;p&gt;4. Sql Statement - Provide the dynamic statement to retrieve the base 64 string.&lt;/p&gt;
&lt;p&gt;5. Target Folder - Appian folder in which the document is to be saved.&lt;/p&gt;
&lt;p&gt;Outputs:&lt;/p&gt;
&lt;p&gt;1. Save the ac!Document value into a process variable to get the Appian doc ID&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Approach 3:&lt;/p&gt;
&lt;p&gt;Step 1: Create a plugin that directly converts the base 64 string into an Appian document.This can help save the time of writing/retrieving the Base 64 value to and from the db respectively.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vaisakh Sekhar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>