RawDataFromBytes Method

Creates a new RawData instance from an array of Bytes.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public static RawData FromBytes(
	byte[] bytes,
	string mediaType = "application/octet-stream"
)

Parameters

bytes  Byte
The Byte array to embed.
mediaType  String  (Optional)
The Internet Media Type ("MIME type") of the bytes.

Return Value

RawData
The newly created RawData instance.

Exceptions

ArgumentNullExceptionbytes or mediaType is null.

See Also