HttpPostedFileBaseExtensions..::..ToBytes Method

To the bytes.

Namespace:  MichaelBrandonMorris.Extensions.WebExtensions
Assembly:  MichaelBrandonMorris.Extensions.WebExtensions (in MichaelBrandonMorris.Extensions.WebExtensions.dll)

Syntax


public static byte[] ToBytes(
	HttpPostedFileBase file,
	int offset
)
Public Shared Function ToBytes ( _
	file As HttpPostedFileBase, _
	offset As Integer _
) As Byte()
public:
static array<unsigned char^>^ ToBytes(
	HttpPostedFileBase^ file, 
	int^ offset
)

Parameters

file
Type: HttpPostedFileBase
The file.
offset
Type: Int32
The offset.

Return Value

System.Byte[].

Exceptions


ExceptionCondition
ArgumentNullException file - File must not be null.