<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Convert_a_file_to%2Ffrom_Base64</id>
	<title>Convert a file to/from Base64 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Convert_a_file_to%2Ffrom_Base64"/>
	<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=Convert_a_file_to/from_Base64&amp;action=history"/>
	<updated>2026-05-08T12:47:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>http://95.179.246.60/mediawiki/index.php?title=Convert_a_file_to/from_Base64&amp;diff=176&amp;oldid=prev</id>
		<title>Nmingott: importing material</title>
		<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=Convert_a_file_to/from_Base64&amp;diff=176&amp;oldid=prev"/>
		<updated>2025-05-12T20:38:49Z</updated>

		<summary type="html">&lt;p&gt;importing material&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* One of the use of base64 file is to convert binary files into text files and, for example, send them via mail.&lt;br /&gt;
* This is an example of what you get if you watch inside a base64 file&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;UEsDBAoAAAAAAEZcOFMAAAAAAAAAAAAAAAAIABwAdGVzdERpci9VVAkAA5ObTWHPn01hdXgLAAEE&lt;br /&gt;
 6AMAAAToAwAAUEsDBAoAAAAAAERcOFMgMDo2BgAAAAYAAAARABwAdGVzdERpci90ZXN0MS50eHRV&lt;br /&gt;
 VAkAA4+bTWGIm01hdXgLAAEE6AMAAAToAwAAaGVsbG8KUEsDBAoAAAAAAElcOFOQoBAeBwAAAAcA&lt;br /&gt;
 AAARABwAdGVzdERpci90ZXN0Mi50eHRVVAkAA5qbTWGTm01hdXgLAAEE6AMAAAToAwAAaGVsbG8y&lt;br /&gt;
 ClBLAQIeAwoAAAAAAEZcOFMAAAAAAAAAAAAAAAAIABgAAAAAAAAAEADtQQAAAAB0ZXN0RGlyL1VU&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Encode a file into new file Base64 ===&lt;br /&gt;
&lt;br /&gt;
* The Linux/MacOSX way of doing such conversion is:&lt;br /&gt;
&lt;br /&gt;
 $&amp;gt; base64 foo.dat &amp;gt; foo.dat.b64&lt;br /&gt;
&lt;br /&gt;
* In Cuis you do:&lt;br /&gt;
&lt;br /&gt;
 inFile _ &amp;#039;/home/p/foo.dat&amp;#039;.&lt;br /&gt;
 file64 _ &amp;#039;/home/p/foo.dat.b64&amp;#039;. &lt;br /&gt;
 rs1 _ inFile asFileEntry readStream useBytes.&lt;br /&gt;
 rs2 _ file64 asFileEntry forceWriteStream .&lt;br /&gt;
 Base64MimeConverter mimeEncode: rs1 to: rs2.  &lt;br /&gt;
 rs1 close. rs2 close.&lt;br /&gt;
&lt;br /&gt;
=== Decode a Base64 file into a new file ===&lt;br /&gt;
&lt;br /&gt;
* You can do this in Linux/MacOSX with&lt;br /&gt;
&lt;br /&gt;
 $&amp;gt; base64 -d foo.dat.b64 &amp;gt; foo.dat &lt;br /&gt;
&lt;br /&gt;
* In Cuis you do:&lt;br /&gt;
&lt;br /&gt;
 file64 _ &amp;#039;/home/p/foo.dat.b64&amp;#039;. &lt;br /&gt;
 outFile _ &amp;#039;/home/p/foo.dat&amp;#039;.&lt;br /&gt;
 rs1 _ file64 asFileEntry readStream.&lt;br /&gt;
 rs2 _ outFile asFileEntry forceWriteStream useBytes.&lt;br /&gt;
 Base64MimeConverter mimeDecode: rs1 to: rs2.  &lt;br /&gt;
 rs1 close. rs2 close.&lt;/div&gt;</summary>
		<author><name>Nmingott</name></author>
	</entry>
</feed>