Back to Firebase Js Sdk

GenerativeContentBlob interface

docs-devsite/ai.generativecontentblob.md

12.12.1933 B
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

GenerativeContentBlob interface

Interface for sending an image.

<b>Signature:</b>

typescript
export interface GenerativeContentBlob 

Properties

PropertyTypeDescription
datastringImage as a base64 string.
mimeTypestring

GenerativeContentBlob.data

Image as a base64 string.

<b>Signature:</b>

typescript
data: string;

GenerativeContentBlob.mimeType

<b>Signature:</b>

typescript
mimeType: string;