<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pedromussato.com/index.php?action=history&amp;feed=atom&amp;title=Base64_file_encode_and_decode_with_Python</id>
	<title>Base64 file encode and decode with Python - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pedromussato.com/index.php?action=history&amp;feed=atom&amp;title=Base64_file_encode_and_decode_with_Python"/>
	<link rel="alternate" type="text/html" href="https://wiki.pedromussato.com/index.php?title=Base64_file_encode_and_decode_with_Python&amp;action=history"/>
	<updated>2026-04-10T13:04:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.pedromussato.com/index.php?title=Base64_file_encode_and_decode_with_Python&amp;diff=115&amp;oldid=prev</id>
		<title>413vhcu1lq0463ob: Created page with &quot;Encode code  import base64    input_file_path = input(&#039;Input file &gt; &#039;)  output_file_path = input(&#039;Output file &gt; &#039;)    with open(input_file_path, &#039;rb&#039;) as file:      file_data = file.read()      encoded_data = base64.b64encode(file_data)    with open(output_file_path, &#039;wb&#039;) as output_file:      output_file.write(encoded_data)  Decode code  import base64    input_file_path = input(&#039;Input file &gt; &#039;)  output_file_path = input(&#039;Output file &gt; &#039;)    with open(input_file_path, &#039;r...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.pedromussato.com/index.php?title=Base64_file_encode_and_decode_with_Python&amp;diff=115&amp;oldid=prev"/>
		<updated>2024-10-12T02:03:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Encode code  import base64    input_file_path = input(&amp;#039;Input file &amp;gt; &amp;#039;)  output_file_path = input(&amp;#039;Output file &amp;gt; &amp;#039;)    with open(input_file_path, &amp;#039;rb&amp;#039;) as file:      file_data = file.read()      encoded_data = base64.b64encode(file_data)    with open(output_file_path, &amp;#039;wb&amp;#039;) as output_file:      output_file.write(encoded_data)  Decode code  import base64    input_file_path = input(&amp;#039;Input file &amp;gt; &amp;#039;)  output_file_path = input(&amp;#039;Output file &amp;gt; &amp;#039;)    with open(input_file_path, &amp;#039;r...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Encode code&lt;br /&gt;
 import base64&lt;br /&gt;
 &lt;br /&gt;
 input_file_path = input(&amp;#039;Input file &amp;gt; &amp;#039;)&lt;br /&gt;
 output_file_path = input(&amp;#039;Output file &amp;gt; &amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
 with open(input_file_path, &amp;#039;rb&amp;#039;) as file:&lt;br /&gt;
     file_data = file.read()&lt;br /&gt;
     encoded_data = base64.b64encode(file_data)&lt;br /&gt;
 &lt;br /&gt;
 with open(output_file_path, &amp;#039;wb&amp;#039;) as output_file:&lt;br /&gt;
     output_file.write(encoded_data)&lt;br /&gt;
&lt;br /&gt;
Decode code&lt;br /&gt;
 import base64&lt;br /&gt;
 &lt;br /&gt;
 input_file_path = input(&amp;#039;Input file &amp;gt; &amp;#039;)&lt;br /&gt;
 output_file_path = input(&amp;#039;Output file &amp;gt; &amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
 with open(input_file_path, &amp;#039;rb&amp;#039;) as encoded_file:&lt;br /&gt;
     encoded_data = encoded_file.read()&lt;br /&gt;
     decoded_data = base64.b64decode(encoded_data)&lt;br /&gt;
 &lt;br /&gt;
 with open(output_file_path, &amp;#039;wb&amp;#039;) as output_file:&lt;br /&gt;
     output_file.write(decoded_data)&lt;/div&gt;</summary>
		<author><name>413vhcu1lq0463ob</name></author>
	</entry>
</feed>