Hi, that example script is very simple. If you can use RTSP we have a much better RTSP streamer script under the webservers demos. You can stream 1080p video using JPEG mode on the RT1062 for example.
Otherwise, you want to send an image using the urequests module and you should target an API endpoint.