Loaded File Base64
data class LoadedFileBase64( val file: File, val dataUrl: String?, val mimeType: String?, val dataBase64: String?)
Content copied to clipboard
Constructors
Link copied to clipboard
fun LoadedFileBase64( file: File, dataUrl: String?, mimeType: String?, dataBase64: String?)
Content copied to clipboard
Types
Properties
Extensions
Link copied to clipboard
suspend fun LoadedFileBase64.compressImageToJpg(maxBytes: Long): LoadedFileBase64
Content copied to clipboard
Tries to compress the given file to a jpg.
Link copied to clipboard
Returns true when the given file is an image that can be converted