The invention discloses a method for information transmission based on JPEG2000 compressed code streams. The method can embed information in compressed data of various images with different compression multiples, without increasing the amount of data, without changing the JPEG2000 compression format, and without affecting normal decompression. The receiving end is able to recover the information as well as the carrier image. Without increasing channel resources, the amount of transmitted data is increased, and the transmission efficiency of the data transmission system is improved. The present invention can make the ratio of the amount of information hidden in the compressed domain to the total data volume of the compressed domain reach a desired ratio such as 1 / 16, 1 / 8, 1 / 4, 1 / 2, if compressed by 4 times, the ratio of the original data volume The ratio is 1 / 64, 1 / 32, 1 / 16, 1 / 8, and the information data can be restored normally, the peak signal-to-noise ratio between the carrier image and the original image is above 30dB, and the PSNR loss is between 1dB to several dB It does not affect the normal use of the image.