DataUrlToB64(Byte, String) Method

Return the Base-64 representation of the specified file content.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static string ToB64(
	byte[] data,
	string mimeType
)

Parameters

data  Byte
Html content.
mimeType  String
Mime type of the data, as determined by file extension.

Return Value

String
Base-64 string value where all external references have been fully embedded. For SVG, use attribute syntax xlink:href='{base64}'

See Also