Class ImageUtil
java.lang.Object
net.thevpc.naru.util.ImageUtil
Utility helpers for image handling.
-
Method Details
-
toBase64
Reads an image file from disk and returns it as a Base64-encoded string (no data-URL prefix — just the raw base64 data that Ollama expects).- Throws:
IOException
-
mimeType
-