The invention discloses a method and a system for uploading the real-name photo on an internet-of-things traffic data card, wherein the method comprises: A) obtaining the real-name photo on an internet-of-things traffic data card; converting the real-name photo into base64 character strings; B) newly creating or searching the already created Canvas label and rendering the base64 character strings in the same proportion to develop a rendered photo; C) through a Canvas built-in method, zipping the rendered photo; and D) transmitting the rendered photo after being zipped to a backstage through an interface. According to the invention, prior to be uploaded, through the front-end technology, the photo is zipped, and the zipped photo is then uploaded. This can reduce the traffic data consumption for the user, and can also shorten the uploading time, and therefore, saves the server resources. Compared with the prior art, the method and the system enable the real-name verification to be more automatic and to be processed more smoothly. In addition, the complexity for artificial processing is also reduced, so is the error rate.