AWS SDK for .NET Documentation
MakeStreamSeekable Method (input)
AmazonAmazon.S3.UtilAmazonS3UtilMakeStreamSeekable(Stream) Did this page help you?   Yes   No    Tell us about it...
Converts a non-seekable stream into a System.IO.MemoryStream. A MemoryStream's position can be moved arbitrarily
Declaration Syntax
C#
public static Stream MakeStreamSeekable(
	Stream input
)
Parameters
input (Stream)
The stream to be converted
Return Value
A seekable MemoryStream
Remarks
MemoryStreams use byte arrays as their backing store. Please use this judicially as it is likely that a very large stream will cause system resources to be used up.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)