Extracting spreadsheet from blob column in MySQL database

Thanks both for the advice so far. It’s the function to do the manipulation that is eluding me.

You can see the nodes in my workflow here which all run, but they produce a file that excel won’t open, clearly because I need to use a function to convert the data coming from the database blob into something that n8n can read.

I suspect my Set node needs to be replaced with a function, but I lack the javascript knowledge to write such a function.

Here is my workflow - I’m sure I’m making a bunch of noob mistakes!