I am trying to encode an image to base64 encoding and send it to a C++ server I am creating. I am using PHP to do that.
Therefore, the PHP code is the client and the
You need to set the socket send buffer to be at least as large as the largest UDP datagram you are sending.
Don't ask me how to do that in PHP but at the Sockets API level it is setsockopt() with the SO_SNDBUF option.
setsockopt()
SO_SNDBUF