MATLAB: How i can insert file *.docx/*.pdf into image using LSB

decodeencodelsb

I have trouble finding a tutorial to insert a file * .docx / *. pdf into image using LSB. Please, help me!

Best Answer

You can use fopen/fread/fclose to read in any kind of file as uint8. Then dec2bin and subtract '0' (the character) to get bits that you can embed.