Quote Originally Posted by mansoor_aziz
BinaryReader br = new BinaryReader(readStream);
BinaryWriter bw = new BinaryWriter(System.IO.File.Open(FileNameWithPath, FileMode.Create), Encoding.UTF8);
byte[] buff = new byte[1024];
int c=1;
while(c > 0 )
{
c = br.Read(buff, 0, 1024);
for(int i=0;i<c;i++)
bw.Write(buff[i]);

}

bw.Close();
Hm, during the instantiation of the BinaryWriter you use always UTF8 encoding. Works this correct if the read file is encoded ISO 8859-12 for instance?