Ok:)Excuse me.I forgot to gloss.I want to teach a image file binary values.
exam.jpg image file's binary value:11111111...
If u bed another.jpg before exam.jpg.Another image file's binary value (another.jpg):11111111...
This results are same.But this is impossible.Because this pictures are not same.
I don't follow you explanation. Your use of the words "gloss", "teach", and "bed" are not standard English.
If you are just looking at the initial bytes, these are likely to be the same for the same type of file, as the first part of a jpeg file is the header, not the data.
As the i/p file is a .jpg and the o/p is a .bmp, are you trying to convert a image to a different format?
Thank u.But this is not my question's answer.This is my codes.And i know this.
I want to learn this:exam.jpg' binary values:111011111011110001100101000110001100001100..
00:a
01:b
10:c
11:d
I think he wants to be able to create an image file using his own data.
I don't recommend JPG for that. Pick a lossless file format, like PNG, TGA, BMP, or GIF.
In any case, you'll need a library to convert your raw image data to a file of that type.
Google around "libpng", etc.
Good luck!