You should use WriteBytes instead of WriteObject. WriteObject uses a special format.
Ok, this sheds some light on an issue I was having while collecting data, as my binary file of Data was larger than the same data written as a text file, which had me scratching my head.
It begs the question of, when to use WriteBytes and when to use WriteObject as I was creating my own data types (structures) of Longs, Doubles, floats and strings, then populating them with collected data then writing them to file using WriteObject.
Later I want to actually do the same thing with bitmaps, images or pictures and data for transmission across the network, then what do I use because I would Like to have the option of persisting them in files as well.
Thanks
Kevin