<?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>can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/discussions/f/best-practices/11222/can-somebody-show-me-how-to-configure-insert-document-as-base64-into-database</link><description>I have been searching for that but i found nothing. i need to save document with base64 format to database. and found that(Insert Document as Base64 into Database) In Data Service in Process model. but somehow my configuration still wrong. 
 
 thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/66549?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 20:39:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84253092-2a3b-402d-a5fb-33e2abb1db49</guid><dc:creator>jorge.navarreteBAC</dc:creator><description>&lt;p&gt;Hello joaoa0001,&amp;nbsp;&amp;nbsp;Could you solve the problem? I have a similar case, what can I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/66185?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 20:31:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b23ca57a-01e4-42cd-bde2-a43b900703a6</guid><dc:creator>DaveMC</dc:creator><description>&lt;p&gt;Hi Josep, just saw this. Apologies for not responding sooner. With help I was able to figure out how to use the plugin. Details posted here.&amp;nbsp;&lt;a href="/b/appmarket/posts/base64-document-database-integration"&gt;Base64 document database integration&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/66113?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 04:51:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9141f5c8-8e4a-4e26-a377-89167a08d913</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;Hello Dave &lt;/p&gt;
&lt;p&gt;On which database are you? Working on ? &lt;/p&gt;
&lt;p&gt;This is important to know since each database handles diferent the blob/clob. &lt;/p&gt;
&lt;p&gt;I would like to ask if you really need to store documents on the database ? &lt;/p&gt;
&lt;p&gt;Please let us know your use case. &lt;/p&gt;
&lt;p&gt;José &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/66103?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 17:41:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72183a2d-d6ac-4a3c-95e8-b5c935758284</guid><dc:creator>DaveMC</dc:creator><description>&lt;p&gt;Hi Jose,&lt;/p&gt;
&lt;p&gt;Would you be able to post an example of the sql you used. I&amp;#39;m struggling to see how the document gets pulled into the sql.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;Dave&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/66070?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 19:18:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:241d01a3-5bd9-4d40-898a-c4b34602dc70</guid><dc:creator>DaveMC</dc:creator><description>&lt;p&gt;same here. did you get it resolved?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/65290?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 11:42:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb425783-db9e-4f8b-abc4-3e029478a899</guid><dc:creator>joaoa0001</dc:creator><description>Hello Josep, &lt;br /&gt;
&lt;br /&gt;
I am also having trouble with configuring Insert Document as Base64 into Database as it always keeps giving an &amp;quot;An error occurred in executing an Activity Class.&amp;quot;&lt;br /&gt;
Could you detail  on  what to put in the sqlStatement parameter?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/54370?ContentTypeID=1</link><pubDate>Mon, 23 Apr 2018 12:37:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1240292c-250d-433a-8c6f-c86d6ee60e08</guid><dc:creator>chandu</dc:creator><description>Using the Smart service is depends on the requirement. If you want to save the document in to database, You can user base64 smart service. In this case we need to make sure that the Process instance can live short time and should not impact performance. &lt;br /&gt;
BLOB data type is used typically when the data is in Binary format, and CLOB is used when the data is more than 4000 characters.&lt;br /&gt;
If your requirement is just to store the document as is and then you can use SFTP smart service.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/54341?ContentTypeID=1</link><pubDate>Mon, 23 Apr 2018 09:53:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3bc756a8-6a61-460c-b9ca-b87b0067b6f7</guid><dc:creator>shandyabdir</dc:creator><description>In my experience, i think you should user SFTP for transfering the file. base64 or BLOB can cause high memory usage on your server.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/54292?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 23:24:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d00c240-8f1a-4076-8f38-3f8879876c1d</guid><dc:creator>rankop</dc:creator><description>If the database is Oracle, which has a maximum of 4000 characters on a VARCHAR2 text field, and if the files are bigger - can a CLOB or BLOB be used instead (with this same base64 SmartService - or any other known SmartService )?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/49365?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 14:28:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3756870d-d098-4f23-9210-8bac6d4ba0de</guid><dc:creator>shandyabdir</dc:creator><description>Hi Jose,&lt;br /&gt;
&lt;br /&gt;
Glad to have your opinion, i will considered about all the stuff as you mention. &lt;br /&gt;
for now, i see that a!documentDownloadLink() is the closest way.&lt;br /&gt;
i will update this discussion again if i success-ed. &lt;br /&gt;
&lt;br /&gt;
thanks a lot.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
Shandy.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/49364?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 14:17:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c16fdfdd-6a22-4b6f-b830-bcbef1dabecf</guid><dc:creator>josep</dc:creator><description>Hello Shandy, &lt;br /&gt;
&lt;br /&gt;
Sorry I take too much time to reply, I think we are in different timezones, anyway, now that you put it that way you want to share files between cloud and onpremise and you have more control over the DB maybe this is your option. &lt;br /&gt;
&lt;br /&gt;
When I think about sharing files I always think about SFTP Smart Services Plug-in, Dropbox plug-in, or maybe just the sail function a!documentDownloadLink() with another batch processing. Anyway when you are sharing files it is a good practice to get the checksum before moving it, and get the checksum in the target ( this can take extra time but it will make you aware you have moved exactly the same file) it always depends on the criticity of your files and your requirements. &lt;br /&gt;
&lt;br /&gt;
I think this file copy can be async and make some validations as i mentioned the checksum. take care if you have a high volume of files to move over the time&lt;br /&gt;
&lt;br /&gt;
Best Regards &lt;br /&gt;
Jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/49355?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 08:29:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cff7a84d-bc86-41d4-8e9d-b606a7ea6ce5</guid><dc:creator>shandyabdir</dc:creator><description>Great. Thanks a lot &lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/49354?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 08:27:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6782faf-4b24-4057-818e-0590cdd10dab</guid><dc:creator>shandyabdir</dc:creator><description>&lt;p&gt;This is what i need. problem solved.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks a lot &lt;a href="/members/vinayr"&gt;Vinay Kumar Rai&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/49349?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 02:29:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa76f8be-0668-4f77-ad3c-4a5f92853256</guid><dc:creator>shandyabdir</dc:creator><description>&lt;p&gt;Hi Jose,&lt;br /&gt; &lt;br /&gt; Thank you for your reply, i really appreciate it.&lt;br /&gt; &lt;br /&gt; My application is on the cloud, my DB is on the premise. i have to store the document that have been uploaded on appian to my local environment. any suggestion?&lt;br /&gt; &lt;br /&gt; for my understanding, the fastest way to do that is save it to the DB and my other app will generated the doc to the local. the maximum file size is 2MB.&lt;br /&gt; &lt;br /&gt; i am using sql server DB, and on the CDT i set the data type to Text with unlimited size.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; Best Regards,&lt;br /&gt; Shandy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/49331?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 17:53:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd074549-c6cf-4aae-8067-d12ee65862d1</guid><dc:creator>josep</dc:creator><description>As a quick summary in the Smart service you need to &lt;br /&gt;
1) specify the datasource you are connecting&lt;br /&gt;
2) you need to pass the query to insert the document (the files as varchar/string) as I mentioned before take care with the size of your files. &lt;br /&gt;
3) add the parameters to the query, In this parameters you will need to add the &amp;quot;documentId&amp;quot; which is the Id of the Document already in the Knowledge Center of Appian, and the plugin will do the magic&lt;br /&gt;
&lt;br /&gt;
Jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/49321?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 16:07:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6756d2b3-b87e-4309-960e-cad1dc9bb477</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>Use can use a Smart service called Base 64 Document Database Integration Smart Services&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUh-iuLnNE4NTTOpuAGussyPb4WPRyq9CprA/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can somebody show me how to configure Insert Document as Base64 into Database</title><link>https://community.appian.com/thread/49318?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 15:43:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c4bffd9-96d4-43ff-adc9-2589a33f6a67</guid><dc:creator>josep</dc:creator><description>Hello Shandy, &lt;br /&gt;
&lt;br /&gt;
I am not sure, but it has never been the best option to store the files in DB, can I ask why are you trying to do this? Maybe, you have that specific requirement?&lt;br /&gt;
&lt;br /&gt;
Anyway, Let me comment some things, add some comments and ask some clarifications. &lt;br /&gt;
At the end base64 is a representation of the file as a string (coded as base64). If the file is large with this conversion will make it larger. Unless you are using little files. This might be a good option. At the end the DB needs to be a string and probably a BLOB/CLOB. &lt;br /&gt;
&lt;br /&gt;
Let me take a look at it, but please tell us you scenario, which DB are you using? Are you onpremise or cloud?  How are you defining your CDT? &lt;br /&gt;
&lt;br /&gt;
Best Regards &lt;br /&gt;
José Pérez&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>