SPFile.OpenBinary method (SPOpenBinaryOptions)

Opens the specified file as a byte array and specifies options that control how the file opens.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public byte[] OpenBinary(
	SPOpenBinaryOptions openOptions
)

Parameters

openOptions
Type: Microsoft.SharePoint.SPOpenBinaryOptions

Passes in the value specified from the SPOpenBinaryOptions enumeration.

Return value

Type: []
Returns a byte array that contains the file content.
Show: