script-server icon indicating copy to clipboard operation
script-server copied to clipboard

Download virtual file from python script

Open haipas opened this issue 3 years ago • 1 comments

Hello @bugy , I have created a virtual file inside a python script with f = io.BytesIO(b'test'). Do you know a way to download this file to the user computer?

Best regards,

haipas avatar Jan 14 '22 08:01 haipas

Hi, downloading virtual file is not possible. If you write this file somewhere, users can download it using https://github.com/bugy/script-server/wiki/Script-config#output_files

bugy avatar Jan 14 '22 09:01 bugy