DashboardHelperImageFileToDataUri Method

Converts an image file's content into a base64 encoded data uri.

Definition

Namespace: MFiles.VAF.Configuration.Domain.Dashboards
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public static string ImageFileToDataUri(
	string imgPath
)

Parameters

imgPath  String
The path to the image file (on the server).

Return Value

String
Base64 encoded data uri.

See Also