Class GeminiContentBlob
Raw media bytes.
Text should not be sent as raw bytes, use the Text field.
public class GeminiContentBlob
- Inheritance
-
GeminiContentBlob
- Extension Methods
Fields
Data
The base64 encoded bytes of data.
public string Data
Field Value
MimeType
The type of the data.
public GeminiContentType MimeType
Field Value
Remarks
You can use ContentType(string) to convert string
values to their GeminiContentType equivalents, like:
"image/png".ContentType()
Methods
GetContentBlob(Texture2D, bool)
Converts the given Texture2D to a GeminiContentBlob.
public static GeminiContentBlob GetContentBlob(Texture2D image, bool useJPEG = false)
Parameters
image
Texture2DThe Texture2D to use.
useJPEG
boolShould the encoder use JPEG instead of PNG?
Returns
- GeminiContentBlob
A new GeminiContentBlob object.