I tried to read a "Dodo.bmp" file and create a copy of the file "CopyDodo.bmp".
Now I implemented in two ways first by read and writing as Byte Stream
and then I implemented using Character Stream
In both the case it creates a copy file and its viewable. But it should not have worked for Character Stream(i.e. 2nd program) as it reads the file as character and .bmp file has no character in it. It is a bmp file which is structure of binary
Please correct me, I am getting confused in this part?
whether it is bmp or rtf, I wanted to know how it reads. If it reads as binary, then do it read as "0101010....." ways and if reads as character then how will it read. I thought that by character reading we can read any txt document file and with binary we are suppose to read file as binary. Please explain that..