Class Blob
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
public class Blob
- Inheritance
-
Blob
- Inherited Members
- Extension Methods
Properties
Data
Raw bytes for media formats. A base64-encoded string.
[JsonPropertyName("data")]
public string? Data { get; set; }
Property Value
DisplayName
Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls.
[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }
Property Value
MimeType
The IANA standard MIME type of the source data. Examples:
- image/png
- image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see Supported file formats.
[JsonPropertyName("mimeType")]
public string? MimeType { get; set; }