However, one cannot just use the STR $() function to convert numeric types to a string representation because this is an ASCII representation and a binary representation is what is needed.
There exists a set of LB native functions for doing such conversions right on this website.