Author: EkSam | Posted on: 9/5/2009 7:13:35 PM | Views : 434

Any Idea,
I get an error randomly when I try to ReadBytes using Binary Reader. See below code

Exception: Cannot access a closed file.
try {
                if (inputStream == null) return;
                using (BinaryReader br = new BinaryReader(inputStream)) {
                    int buffSize = 1048576;
                    byte[] buf = null;
                    using (BinaryWriter binaryWriter = new BinaryWriter(File.Open(strFileName, FileMode.Create))) {
       &nbs ...

Go to the complete details ...