Stream instead of MemoryStream

Mar 4, 2014 at 7:24 PM
I had to replace Open(MemoryStream) with the more general Stream type.

There was only one additional change needed in WriteToTemporaryFile()

Old:
        File.WriteAllBytes(path, stream.ToArray());
New:
        byte[] buffer = new byte[stream.Length];
        stream.Read(buffer, 0, (int)stream.Length);
        File.WriteAllBytes(path, buffer);
Coordinator
Mar 7, 2014 at 2:32 PM
Hi,

Thanks, I will implement this for the v.1.1.5 release.

Cheers,
Josip