In tutorial ‘A Simple Guide to Python 3 Urllib Post Data to Server’, we know how to post string data to server in python 3. However, how to post binary data, such as image, pdf files to server? In this tutorial, we will show you how to post a binary data to server with an example.