This paper describes a method based on the theory of stochastic recursive identification for lossless compression of medical images detail. The performances of this method are compared with the existing method of DPCM through ten X-ray chest images. The experimental results clearly indicate that this method is very valid to realize lossless compression of medical images.