Convert VTK to binary large object (BLOB)

Hi everyone,
I’m using PyVista to make .vtk and .vtk files of my NumPy array.

I need to store these on an SQLAlchemy database to work with a web app. Unfortunately, the server can only store in binary large object (BLOB).

Is there any way I can convert my file to BLOB?

Thank you.

Is a file a BLOB by definition regardless of its content?

Really sorry about the late reply. Yes, it’s a BLOB regardless of its contents