Table of Contents

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

string

MimeType

The type of the data.

public GeminiContentType MimeType

Field Value

GeminiContentType

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 Texture2D

The Texture2D to use.

useJPEG bool

Should the encoder use JPEG instead of PNG?

Returns

GeminiContentBlob

A new GeminiContentBlob object.