In This Paper, We Propose A Novel Joint Data-hiding And Compression Scheme For Digital Images Using Side Match Vector Quantization (SMVQ) And Image Inpainting. The Two Functions Of Data Hiding And Image Compression Can Be Integrated Into One Single Module Seamlessly. On The Sender Side, Except For The Blocks In The Leftmost And Topmost Of The Image, Each Of The Other Residual Blocks In Raster-scanning Order Can Be Embedded With Secret Data And Compressed Simultaneously By SMVQ Or Image Inpainting Adaptively According To The Current Embedding Bit. VQ Is Also Utilized For Some Complex Blocks To Control The Visual Distortion And Error Diffusion Caused By The Progressive Compression. After Segmenting The Image Compressed Codes Into A Series Of Sections By The Indicator Bits, The Receiver Can Achieve The Extraction Of Secret Bits And Image Decompression Successfully According To The Index Values In The Segmented Sections. Experimental Results Demonstrate The Effectiveness Of The Proposed Scheme.