How can you convert a top to a base64 stream?

I want to convert a top to a base64 string and stream it over a socket. How can this be done?


I have been trying to get the base64 library to work. I can import base64 in the textport, but any time I try to use it in a dat I get this error:

td.Error: Module compilation error. Component may be cooking disabled. See operator for details

Can you share your file that is giving that error?

danoved - there’s built in functions to convert a top to a numpy array - perhaps you can find a numpy -> base64 conversion method? Numpy arrays are fast and flexible, it shouldn’t be too hard…