From fc8953af569a312ff97974e3f9fbafbcc2fc2348 Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Fri, 14 Nov 2025 10:50:03 -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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/actions/file/save_file_from_base64.py b/actions/file/save_file_from_base64.py index d1e193a..8668f64 100644 --- a/actions/file/save_file_from_base64.py +++ b/actions/file/save_file_from_base64.py @@ -36,7 +36,10 @@ def save_file_from_base64( try: # Decodifica o Base64 - file_bytes = base64.b64decode(base64_content) + # file_bytes = base64.b64decode(base64_content) + file_bytes = base64.b64decode( + base64_content.strip().replace("\n", "").replace("\r", "") + ) # Grava o arquivo em disco with open(file_path, "wb") as f: