Answer is MIME protocol.
Multipurpose Internet Mail Extensions lets clients use this protocol to share and exchange different kinds of data files like audio, video, images, and other kinds by extending the limited capabilities of email. Basically, this protocol describes the content type of the message and the type of encoding used.