how the image files store into hard disk as binary format ?

how  does the  Image file store as binary format into hard disk ?

for example a text file named "test.txt"  has following line
    "BE HAPPY. rose is a beautiful flower" .
B -- ascii 66 -  binary value 1000010
E  -  ascii 69 -  binary value  1000101

it stores to hard disk as 1000010 1000101  etc.

like that
how  the image file stores as binary  into hard disk ?
how  the drawing file stores as binary  into hard disk ?
I draw a drawing in mspaint. I save this file "flower.bmp".
how it stores to hard disk as binary format  ?
softwareachieverAsked:
Who is Participating?
 
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
A bitmap is simply that.. every pixel that is on the screen is mapped to a bit-pattern and stored to disk

http://en.wikipedia.org/wiki/BMP_file_format
0
 
Darr247Connect With a Mentor Commented:
> how  the image file stores as binary  into hard disk ?

The same way.

Each byte converts to a binary equivalent, and though hard drives actually store more than 8 bits per byte (for error correction), the capacity is given in bytes (i.e. the bits used for error correction are not counted in the capacity), and in the cases of the image and audio files, their formats encode their data into extended characters that use more than a single 8-bit byte to represent a single value.

But, again, the hard drive manufacturers express the capacity of the drives in 8-bit bytes.
0
 
nobusConnect With a Mentor Commented:
every application has it's own "translation file system"
for txt files, the ASCII code is used, if you have images, they are translated bit per bit into binary values, here an example for JPG files :  http://www.media.mit.edu/pia/Research/deepview/exif.html
this can help :  http://cboard.cprogramming.com/cplusplus-programming/70708-conversion-bmp-binary-file-please-help.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.