How to treat a memoryview as a file, or convert it to a file? I am storing a .stl file in Postgres as a bytea. It is retrieved as a memoryview.