<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ssis logging task Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/ssis-logging-task/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/ssis-logging-task/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Tue, 05 Sep 2023 06:48:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>ssis logging task Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/ssis-logging-task/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SSIS Base64 Encode Decode without Coding</title>
		<link>https://zappysys.com/blog/ssis-base64-encode-decode-without-coding/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Wed, 07 Sep 2016 16:47:38 +0000</pubDate>
				<category><![CDATA[SSIS Logging Task]]></category>
		<category><![CDATA[base64]]></category>
		<category><![CDATA[ssis]]></category>
		<category><![CDATA[ssis advanced file system task]]></category>
		<category><![CDATA[ssis logging task]]></category>
		<category><![CDATA[SSIS PowerPack]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=774</guid>

					<description><![CDATA[<p>Introduction In this post you will learn how to use FREE SSIS Logging Task to perform ssis base64 encode decode and save to Variable or File  (i.e. convert Base64 Encoded value to plain text or encode plain text to base64) . You can also use many other format specifiers found here How to invoke Placeholder [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/ssis-base64-encode-decode-without-coding/">SSIS Base64 Encode Decode without Coding</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this post you will learn how to use <a href="https://zappysys.com/products/ssis-powerpack/ssis-logging-task-free/" target="_blank" rel="noopener">FREE SSIS Logging Task</a> to perform ssis base64 encode decode and save to Variable or File  (i.e. convert Base64 Encoded value to plain text or encode plain text to base64) . You can also use many other <a href="//zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-format-specifiers.htm" target="_blank" rel="noopener">format specifiers found here</a></p>
<h2>How to invoke Placeholder Functions</h2>
<p>There are 3 ways you can use placeholder functions in many tasks with Variable Icon next to the property.</p>
<ol>
<li>User Variable Placeholder</li>
<li>Static String Placeholder</li>
<li>Mixed Placeholder (Static String with Variable)</li>
</ol>
<p><strong>Examples: </strong></p>
<pre class="crayon-plain-tag">{{User::var1,FUN_BASE64ENC}} </pre>
<strong>&#8211;OR&#8211;</strong><br />
<pre class="crayon-plain-tag">&lt;&lt;some direct string,FUN_BASE64ENC&gt;&gt;</pre>
<p><strong>&#8211;OR&#8211;</strong></p>
<pre class="crayon-plain-tag">&lt;&lt;{{User::var1}} and {{User::var2}} ,FUN_BASE64ENC&gt;&gt;</pre>
<h2>Encode Plain text to Base64 string (SSIS base64 encode decode)</h2>
<p>Many times you have requirement to convert plain text into Base64 encoded string (This is very common when you have to transfer data over the web &#8211; set query string / http headers / body ). Typically to perform this you may have to write C# Script if you are SSIS developer but below is very simple way to do without writing any code. <a href="https://zappysys.com/blog/how-to-set-base64-encoded-authorization-header-for-http-web-request/" target="_blank" rel="noopener">Here is the most common use case of Base64 encoded string</a></p>
<ol>
<li>Download <a href="https://zappysys.com/free-ssis-transformations-components-tasks/" target="_blank" rel="noopener">FREE Tasks/Components of SSIS PowerPack</a></li>
<li>Create new SSIS Package</li>
<li>Drag ZS Logging Task from Toolbox</li>
<li>Create SSIS variable which holds plain text value (Lets call it varPlainText. Set some initial value which you want to encode)</li>
<li>Configure <u><span style="color: #000080;">SSIS Logging Task</span></u> as below
<div id="attachment_776" style="width: 310px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/09/ssis-base64-encode-decode-without-coding.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-776" class="wp-image-776 size-medium" src="//zappysys.com/blog/wp-content/uploads/2016/09/ssis-base64-encode-decode-without-coding-300x182.png" alt="SSIS Base64 Encode, Decode using SSIS Logging Task (Without coding convert plain text to base 64 string)" width="300" height="182" srcset="https://zappysys.com/blog/wp-content/uploads/2016/09/ssis-base64-encode-decode-without-coding-300x182.png 300w, https://zappysys.com/blog/wp-content/uploads/2016/09/ssis-base64-encode-decode-without-coding.png 1010w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-776" class="wp-caption-text">SSIS Base64 Encode, Decode using SSIS Logging Task (Without coding convert plain text to base 64 string)</p></div></li>
<li>Run it and you will see new file created with encoded value. You can also save encoded value to Variable if you change <strong>Logging Mode = Variable</strong> rather than File</li>
</ol>
<h2>Convert Base64 Encoded value to plain text (Decode)</h2>
<p>To convert Base64 encoded string into plaintext you can perform similar steps described in the above section except you need to use BASE64DEC format specifier rather than BASE64ENC</p>
<p><strong>Example:</strong></p><pre class="crayon-plain-tag">&lt;&lt;QUJDREVGMTIzIyM=,FUN_BASE64DEC&gt;&gt;
--OR--
{{User::MySSISVar1,FUN_BASE64DEC}}</pre><p>
&nbsp;</p>
<h2>How to decode Base64 file in SSIS and save to new file</h2>
<p>If you have a file coming as a base64 encoded string and you want to decode it and save it to a new file then it&#8217;s simple too. Basically, you will need <a href="https://zappysys.com/products/ssis-powerpack/ssis-file-system-task-advanced/" target="_blank" rel="noopener">SSIS Advanced File System Task</a>  and <span style="color: #000080;"><u>SSIS Logging Task</u></span> to achieve this (see package below).</p>
<div id="attachment_775" style="width: 310px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/09/ssis-decode-base64-file-encode-using-logging-task.png"><img decoding="async" aria-describedby="caption-attachment-775" class="wp-image-775 size-medium" src="//zappysys.com/blog/wp-content/uploads/2016/09/ssis-decode-base64-file-encode-using-logging-task-300x158.png" alt="SSIS decode base64 file - Read content convert to plain text and save to new file" width="300" height="158" srcset="https://zappysys.com/blog/wp-content/uploads/2016/09/ssis-decode-base64-file-encode-using-logging-task-300x158.png 300w, https://zappysys.com/blog/wp-content/uploads/2016/09/ssis-decode-base64-file-encode-using-logging-task.png 603w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-775" class="wp-caption-text">SSIS decode base64 file &#8211; Read content convert to plain text and save to new file</p></div>
<p>Here are your steps.</p>
<ol>
<li>Use <a href="https://zappysys.com/products/ssis-powerpack/ssis-file-system-task-advanced/" target="_blank" rel="noopener">SSIS Advanced File System Task</a> and use read file content option to save file content into SSIS Variable</li>
<li>Configure Advanced File System as below.
<div id="attachment_777" style="width: 310px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/09/ssis-advanced-file-system-task-read-file-content-into-variable.png"><img decoding="async" aria-describedby="caption-attachment-777" class="wp-image-777 size-medium" src="//zappysys.com/blog/wp-content/uploads/2016/09/ssis-advanced-file-system-task-read-file-content-into-variable-300x174.png" alt="Read file content into SSIS variable using SSIS Advanced File System task" width="300" height="174" srcset="https://zappysys.com/blog/wp-content/uploads/2016/09/ssis-advanced-file-system-task-read-file-content-into-variable-300x174.png 300w, https://zappysys.com/blog/wp-content/uploads/2016/09/ssis-advanced-file-system-task-read-file-content-into-variable.png 727w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-777" class="wp-caption-text">Read file content into SSIS variable using SSIS Advanced File System task</p></div></li>
<li>Next step connect <u><span style="color: #000080;">SSIS Logging Task</span></u></li>
<li>Configure SSIS Logging Task as per below screenshot.
<div id="attachment_778" style="width: 310px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/09/ssis-decode-base64-encoded-file-content.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-778" class="wp-image-778 size-medium" src="//zappysys.com/blog/wp-content/uploads/2016/09/ssis-decode-base64-encoded-file-content-300x260.png" alt="Decode base64 file content in SSIS - Use Logging Task" width="300" height="260" srcset="https://zappysys.com/blog/wp-content/uploads/2016/09/ssis-decode-base64-encoded-file-content-300x260.png 300w, https://zappysys.com/blog/wp-content/uploads/2016/09/ssis-decode-base64-encoded-file-content.png 568w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-778" class="wp-caption-text">Decode base64 file content in SSIS &#8211; Use Logging Task</p></div></li>
</ol>
<h2>Convert Base64 Encoded string of local file content (Binary or Text)</h2>
<p>Using FUN_FILE_BASE64ENC we can encode the image or any other local file(Binary or Text) to the Base64 string.</p>
<h3>FUN_FILE_BASE64ENC</h3>
<p><strong>Syntax:</strong></p><pre class="crayon-plain-tag">&lt;&lt;file_path,FUN_FILE_BASE64ENC&gt;&gt;</pre><p>
Returns BASE64 encoded string of local file content (binary or text).</p>
<h4>Parameters:</h4>
<table style="width: 100%;">
<thead>
<tr>
<th style="width: 30%;">Name</th>
<th style="width: 70px;">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>file_path</td>
<td>[String] File path for which you like encode content as Base64.</td>
</tr>
</tbody>
</table>
<h4>Examples:</h4>
<pre class="crayon-plain-tag">&lt;&lt;c:\someimage.png,FUN_FILE_BASE64ENC&gt;&gt;
--OR--
{{User::MySSISVar1,FUN_FILE_BASE64ENC}}</pre>
<h4>Sample Output:</h4>
<p>This returns base64 encoded string of binary file (png)<br />
<pre class="crayon-plain-tag">bXl1c2V..........Ac3NXb3Jk</pre>
<p>The post <a href="https://zappysys.com/blog/ssis-base64-encode-decode-without-coding/">SSIS Base64 Encode Decode without Coding</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
