Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

base64 python

with open(file_name, "rb") as f:
        bytes = f.read()
        encoded_file: base64 = base64.b64encode(bytes)

encoded_file_utf: str = str(encoded_file, encoding='utf-8')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
8+2 =