Answers for "python save base64 temp file"

0

python save base64 temp file

import tempfile
import subprocess

with tempfile.TemporaryFile(suffix='.exe', delete=False) as tmp:
    tmp.write(EMBEDDED_EXECUTABLE.decode('base64'))
    tmp.close()
    subprocess.Popen(tmp.name)
Posted by: Guest on June-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language