Class MimeTypeDetector
java.lang.Object
org.springframework.ai.google.genai.MimeTypeDetector
Gemini supports the following MIME types:
- image/gif
- image/png
- image/jpeg
- video/mov
- video/mpeg
- video/mp4
- video/mpg
- video/avi
- video/wmv
- video/mpegps
- video/flv
- Since:
- 0.8.1
- Author:
- Christian Tzolov, Dan Dobrin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.util.MimeTypegetMimeType(File file) static org.springframework.util.MimeTypegetMimeType(String path) static org.springframework.util.MimeTypegetMimeType(URI uri) static org.springframework.util.MimeTypegetMimeType(URL url) static org.springframework.util.MimeTypegetMimeType(Path path) static org.springframework.util.MimeTypegetMimeType(org.springframework.core.io.Resource resource)
-
Constructor Details
-
MimeTypeDetector
public MimeTypeDetector()
-
-
Method Details
-
getMimeType
-
getMimeType
-
getMimeType
-
getMimeType
-
getMimeType
public static org.springframework.util.MimeType getMimeType(org.springframework.core.io.Resource resource) -
getMimeType
-