Smartsheet.Api.Internal.SheetResourcesImpl.CopyStream C# (CSharp) Method

CopyStream() private static method

Copy stream.
Signals that an I/O exception has occurred.
private static CopyStream ( Stream input, Stream output ) : void
input Stream the input
output Stream the output
return void
        private static void CopyStream(Stream input, Stream output)
        {
            byte[] buffer = new byte[BUFFER_SIZE];
            int len;
            while ((len = input.Read(buffer, 0, buffer.Length)) > 0)
            {
                output.Write(buffer, 0, len);
            }
        }