toDataURL()
Last updated 5/02/2024
The toDataURL()
is a function on the Five
object that encodes the contents supplied in the data parameter as a data URI with the supplied Multipurpose Internet
Mail Extention (MIME) type.
Available
Server
Function Signature
toDataURL(mimeType: string, data: string): string;
Parameter | Type | Description |
---|---|---|
mimeType | string | Media type of the data parameter |
data | string | Media contents |