Click or drag to resize
ISharePointFileGetContentBytes Method
Gets the file's content as an array of bytes.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 8.2.23
Syntax
C#
byte[] GetContentBytes()

Return Value

Type: Byte
Array of bytes containing SharePoint file's binary data
Exceptions
ExceptionCondition
FileNotFoundExceptionThrown when requested file is not present at SharePoint server.
SharePointServerExceptionThrown whenever server error occurs.
WebExceptionThrown when error related to network or protocol occurs.
SharePointConnectionNotSupportedExceptionThrown when given connectionData contains unsupported authentication mode or invalid URL.
SharePointCCSDKExceptionThrown when identity client library "msoidcliL.dll" needed for SharePoint Online authentication is missing. See documentation for details.
ExceptionThrown in case of unexpected error condition.
See Also