I am using OpenCV on my Raspberry Pi to track circular objects. Then, I want to send the coordinate and radius values in an array of floats across the LAN to the Java program

I can send strings all fine with the code I have, but I'm having trouble trying to send numerical datatypes. What is the correct process for this?