def file_to_base64(file_path: str) -> str: with open(file_path, "rb") as binnary_file: encoded_string = base64.b64encode(binnary_file.read()) return encoded_string.decode('utf-8')
Devamını Oku »def file_to_base64(file_path: str) -> str: with open(file_path, "rb") as binnary_file: encoded_string = base64.b64encode(binnary_file.read()) return encoded_string.decode('utf-8')
Devamını Oku »