[Solved] FileStream throws File not found
Ok, I found the problem: My server-side program interefered with my client-side program. Here’s the fixed code for the SendFile code of my client program: public void SendFile(String fileName, long fileSize, NetworkStream io) { SendFileNameToServer(); SendFileSizeToServer(); byte[] fileData; try { FileStream openFileStream = File.OpenRead(fileName); BinaryReader bReader = new BinaryReader(openFileStream); Int32 remainingSize = Convert.ToInt32(_fileSize); do { … Read more