I am looking to send an img file created using Qemu snapshot feature through the network using Python. Its file is of varying size.
I think you may want to read the socket module doc of python.
Sending an img file using Python