SPFile.SaveBinary Method (Stream, SPFileSaveBinaryParameters)

Saves the file in binary format based on a stream that contains a file and an SPFileSaveBinaryParameters object with additional parameters.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Sub SaveBinary ( _
    file As Stream, _
    parameters As SPFileSaveBinaryParameters _
)
'Usage
Dim instance As SPFile
Dim file As Stream
Dim parameters As SPFileSaveBinaryParameters

instance.SaveBinary(file, parameters)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public void SaveBinary(
    Stream file,
    SPFileSaveBinaryParameters parameters
)

Parameters

See Also

Reference

SPFile Class

SPFile Members

SaveBinary Overload

Microsoft.SharePoint Namespace