Commit 70d8e1b2 authored by Luciano Cauzzi's avatar Luciano Cauzzi

fixed string encoding

parent 4f41e2a1
......@@ -239,7 +239,7 @@ def encode_file_base64(file_name: str) -> Optional[str]:
try:
with open(file_name, "rb") as f:
encoded_file = base64.b64encode(f.read())
return encoded_file
return str(encoded_file, 'utf-8')
except Exception as e:
logger.error("[ERROR]: error while encoding fil to base64" + str(e))
return None
......@@ -3,7 +3,7 @@ import setuptools
setup(
name='file_manager',
version='0.1.16',
version='0.1.17',
packages=setuptools.find_packages(),
dependency_links=['http://github.comune.brescia.it/innovation-that-excites/logger_library#egg=logger_library'],
install_requires=['setuptools', 'logger_library'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment