Typically, PostedFile.InputStream and System.IO.Stream same. Therefore, there is no need for additional coding for Rackspace.
You can use file.InputStream as the Stream parameter to create Object of Rackspace cloud files.
Another method that is not required but can be tested
byte[] buffer = new byte[file.InputStream.Length]; file.InputStream.Seek(0, SeekOrigin.Begin); file.InputStream.Read(buffer, 0, Convert.ToInt32(file.InputStream.Length)); Stream stream2 = new MemoryStream(buffer);
You can use this stream also as input to create an object.
source share