Click or drag to resize
S3ObjectInfoProviderGetObjectContent Method
Returns object content as a CMS.IO.Stream.

Namespace: CMS.AmazonStorage
Assembly: CMS.AmazonStorage (in CMS.AmazonStorage.dll) Version: 8.2.23
Syntax
C#
public Stream GetObjectContent(
	IS3ObjectInfo obj,
	FileMode fileMode = FileMode.Open,
	FileAccess fileAccess = FileAccess.Read,
	FileShare fileShare = FileShare.ReadWrite,
	int bufferSize = 4096
)

Parameters

obj
Type: CMS.AmazonStorageIS3ObjectInfo
Object info.
fileMode (Optional)
Type: System.IOFileMode
File mode.
fileAccess (Optional)
Type: System.IOFileAccess
File access.
fileShare (Optional)
Type: System.IOFileShare
Sharing permissions.
bufferSize (Optional)
Type: SystemInt32
Buffer size.

Return Value

Type: Stream

Implements

IS3ObjectInfoProviderGetObjectContent(IS3ObjectInfo, FileMode, FileAccess, FileShare, Int32)
See Also