<?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>Facing while trying to convert a document to Base 64 string and send it as an input to the Rest API</title><link>https://community.appian.com/discussions/f/plug-ins/13297/facing-while-trying-to-convert-a-document-to-base-64-string-and-send-it-as-an-input-to-the-rest-api</link><description>We have a requirement of converting a document to Base 64 string and call a Rest API. 
 
 We are using the plugin : Base64 Request to REST Web Service 
 
 When we try with documents &amp;lt; 5 MB, it is working as expected. 
 But when we try it with &amp;gt; 5 MB,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Facing while trying to convert a document to Base 64 string and send it as an input to the Rest API</title><link>https://community.appian.com/thread/67723?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 02:54:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c51fe08-efbb-43fb-89b2-4b793810d47b</guid><dc:creator>guadalupej0001</dc:creator><description>&lt;p&gt;Hello Sanjay, I&amp;#39;m using the same plugin as you used some months ago, but I&amp;#39;m having an error&lt;/p&gt;
&lt;p&gt;without any&amp;nbsp;description&lt;/p&gt;
&lt;p&gt;I put this text {&amp;quot;codigoBase64&amp;quot;:&amp;quot;aG9sYSBtdW5kbw=&amp;quot;} in a file.txt&amp;nbsp; and this is the&amp;nbsp;value&amp;nbsp;in the Indocument paramater&lt;/p&gt;
&lt;p&gt;and in Document Json Path I put &amp;quot;codigoBse64&amp;quot;,&lt;/p&gt;
&lt;p&gt;in the outputs, I put in New Document Created[] parameter a document that is already in Appian, but I think that is wrong&lt;/p&gt;
&lt;p&gt;Can you give me an example of how you used the plugin?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thnaks in advance!!!!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing while trying to convert a document to Base 64 string and send it as an input to the Rest API</title><link>https://community.appian.com/thread/60183?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 11:01:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:670da171-0386-48ee-aedd-e9d21362aa5d</guid><dc:creator>ganeshp</dc:creator><description>Hi,&lt;br /&gt;
As of 18.2 version, it is 3MB limit when we use the covertdoctobase64, though it is not mentioned explicitly. We can restrict file size to &amp;lt;3MB to circumvent this problem. Not sure if this is taken care in 18.3 version.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing while trying to convert a document to Base 64 string and send it as an input to the Rest API</title><link>https://community.appian.com/thread/60150?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 13:39:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e47a9f63-94b4-4578-bf74-71d523d93571</guid><dc:creator>sanjays754</dc:creator><description>Jose,&lt;br /&gt;
&lt;br /&gt;
I am not seeing any kind of time out from the service. It is getting executed within  5 ~ 10 seconds. But I am getting an error saying that object is null when the document is &amp;gt; 5 MB.&lt;br /&gt;
We are trying multiple things.&lt;br /&gt;
I will keep you posted.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing while trying to convert a document to Base 64 string and send it as an input to the Rest API</title><link>https://community.appian.com/thread/60111?ContentTypeID=1</link><pubDate>Sat, 08 Sep 2018 08:49:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9a23678-2e25-436a-8e0e-9bd20add8358</guid><dc:creator>josep</dc:creator><description>Hello Sanjay&lt;br /&gt;
&lt;br /&gt;
For me that sounds like a problem with timeouts. For example. if you could convert the file to base64 before been requested. What does the log files say about the error? &lt;br /&gt;
&lt;br /&gt;
In the other hand, Are you in the cloud? If so, Maybe another solution could be the version 18.3? &lt;br /&gt;
&lt;br /&gt;
From the releases notes you have this &lt;br /&gt;
“Send Documents Using Base64 Inline with JSON &amp;amp; XML&lt;br /&gt;
Sending documents from Appian to other systems has never been easier. Integrations can now send Base64-encoded documents inline with a JSON or XML request. Base64-encoded documents go into the Integration&amp;#39;s body, which can automatically convert the CDT to JSON or XML.”&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.3/Appian_Release_Notes.html#automatically-convert-integration-request-body-to-json-or-xml"&gt;docs.appian.com/.../Appian_Release_Notes.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Do you think this could help?  I am not sure if there is any limit on this but at least that is something you can ask to support team. &lt;br /&gt;
&lt;br /&gt;
Jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>