• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 533
  • Last Modified:

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  ?
0
softwareachiever
Asked:
softwareachiever
3 Solutions
 
David Johnson, CD, MVPOwnerCommented:
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
 
Darr247Commented:
> 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
 
nobusCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now