I'm using Pyodide and I have several files in the Pyodide file system. I try to implement the following behavior :
- the user click on a button to download a specific file from the Pyodide file system
- the download starts
The file to be downloaded is a zip file.
I read the file with:
let file = pyodide.FS.readFile('/home/pyodide/assets/test.zip', { encoding: "utf8" });
And I try to save it with FileSaver.js
:
saveAs(file, 'test.zip');
But the download doesn't work.