The image data transferred by embedded network devices directly lacks of extensibility. As different devices have different image formats, so the receivers may have difficulty in interpretation. This article proposes a method based on XML to solve this problem, researches coding and recoding of image and achieve image transferring by integrating the data into XML, finally validates the feasibility through an experiment.