DataInputStream is for reading Java primimitives from a stream, while Writers are for writing character-oriented data; both make assumptions about the data they're dealing with, and are inappropriate for reading/writing binary data. Use BufferedIn[Out]putStream instead.
Ping & DNS - updated with new look and Ping home screen widget
Joined: Nov 17, 2005
Thanks Ulf, you were correct about the classes, in fact they do change some bytes (i compared the files, and noticed the differences) i used the following code instead: