At stack trace i am getting the below error.
  at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize) 
Getting the exception when uploading the file from stream using uploadstream method