Package-level declarations
Types
Functions
Link copied to clipboard
fun URL.asBase64DataUrl(mimeType: MimeType = ContentType.defaultForFilePath(this.path).asMimeType()): String
Converts the content of the URL into a Base64 encoded data URL string.
Converts the byte array into a Base64 encoded data URL string.
fun Path.asBase64DataUrl(mimeType: MimeType = ContentType.Companion
.defaultForFilePath(
fileName.toString(),
).asMimeType()): String
Link copied to clipboard
Converts a ContentType instance to its corresponding MIME type string representation.