Andre_VK_Freitas:

I’m a bit confused on how to do the same with the app running on server, i mean create an .png file store it somewhere and retrieve it later.


Hi @Andre_VK_Freitas, welcome to the Streamlit community!
For a construction like this, you could use tempfile 3. Instead of writing to a directory, it acts like it’s writing to a directory but it keeps the file in RAM.
Best,
Randy