How to hide a file in a picture?

in Windows , you can hide a file in a picture using the following command:

copy /b example.jpg+example.zip output.jpg

the newly obtained pictures can be browsed normally. What is the principle of implementing this feature?

what do you need to do if you don"t use the copy instruction, but implement it yourself?

Jul.16,2021

to put it simply, some data is stored inside the image data to represent the data range of the picture, and the data beyond this range will not be read and displayed.

The

copy instruction appends data from other files to the end of the image file, so that it does not affect the display of the picture, but also appends data to the end of the picture.

you can easily see the text data attached to the end of the image using a text editor.

A simple implementation of copy is not used:

  https://blog.csdn.net/binwalk.

Menu