From 188c7a4c94f4661a460f3bbf80850e27474c13ee Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Fri, 14 Nov 2025 10:59:49 -0300 Subject: [PATCH] =?UTF-8?q?fix():=20Ajuste=20para=20remover=20espa=C3=A7os?= =?UTF-8?q?=20ou=20quebra=20de=20linhas=20desnecess=C3=A1rias=20no=20arqui?= =?UTF-8?q?vo=20base64=20enviado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actions/file/save_file_from_base64.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actions/file/save_file_from_base64.py b/actions/file/save_file_from_base64.py index 8668f64..634b95f 100644 --- a/actions/file/save_file_from_base64.py +++ b/actions/file/save_file_from_base64.py @@ -37,9 +37,10 @@ def save_file_from_base64( try: # Decodifica o Base64 # file_bytes = base64.b64decode(base64_content) - file_bytes = base64.b64decode( + clean_base64_content = base64.b64decode( base64_content.strip().replace("\n", "").replace("\r", "") ) + file_bytes = base64.b64decode(clean_base64_content) # Grava o arquivo em disco with open(file_path, "wb") as f: