WebView.importAsDataUri

Helper function to convert a file to data uri to embed inside html. It works at compile-time so you must set source import paths on your project.

struct WebView
static
string
importAsDataUri
(
string file
)
(
string mimeType = "application/octet-stream"
)

See Also

Meta