process
Serializes this ImageSource to a string representation.
ImageSource.Url -> the raw URL string.
ImageSource.Bytes -> a
data:{mimeType};base64,{encoded}data URI.ImageSource.FilePath -> reads the file from disk and returns a
data:{mimeType};base64,{encoded}data URI.
This function is automatically called for each image when you use any chat and attach a io.kory.core.message.content.Content.Parts object containing an image.
Return
The string representation of the image source.
See also
Throws
if the file was not found when using ImageSource.FilePath