LeroyDyer commited on
Commit
56db493
1 Parent(s): eedb8ef

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -91,7 +91,7 @@ print(f"Encoded sound file saved to example_base64.txt")
91
  decode_base64_to_file(encoded_sound, "decoded_example.mp3")
92
  print("Decoded sound file saved as decoded_example.mp3")
93
  ```
94
- Pipeline Example: Image Files
95
  ``` python
96
 
97
  # Encode image file to Base64
@@ -103,12 +103,13 @@ decode_base64_to_file(encoded_image, "decoded_example_image.jpg")
103
  print("Decoded image file saved as decoded_example_image.jpg")
104
  ```
105
  # Explanation of the Functions
106
- Encoding Pipeline:
107
 
108
  Read the file as binary (rb mode).
109
  Use base64.b64encode() to encode the binary data into Base64 format.
110
  Save the encoded string to an optional file if required.
111
- Decoding Pipeline:
 
112
 
113
  Decode the Base64 string back to binary using base64.b64decode().
114
  Save the binary data as the output file in its original format.
 
91
  decode_base64_to_file(encoded_sound, "decoded_example.mp3")
92
  print("Decoded sound file saved as decoded_example.mp3")
93
  ```
94
+ # Pipeline Example: Image Files
95
  ``` python
96
 
97
  # Encode image file to Base64
 
103
  print("Decoded image file saved as decoded_example_image.jpg")
104
  ```
105
  # Explanation of the Functions
106
+ ### Encoding Pipeline:
107
 
108
  Read the file as binary (rb mode).
109
  Use base64.b64encode() to encode the binary data into Base64 format.
110
  Save the encoded string to an optional file if required.
111
+
112
+ ### Decoding Pipeline:
113
 
114
  Decode the Base64 string back to binary using base64.b64decode().
115
  Save the binary data as the output file in its original format.