mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
fix: Add buffer to the write file option
PiperOrigin-RevId: 785546915
This commit is contained in:
committed by
Copybara-Service
parent
dfee06ac06
commit
f2caf2eeca
@@ -856,7 +856,7 @@ def get_fast_api_app(
|
||||
os.makedirs(agent_dir, exist_ok=True)
|
||||
file_path = os.path.join(agent_dir, filename)
|
||||
|
||||
with open(file_path, "w") as buffer:
|
||||
with open(file_path, "wb") as buffer:
|
||||
shutil.copyfileobj(file.file, buffer)
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user