SongGuess
    Preparing search index...
    interface HostedImagesBinding {
        image(imageId: string): ImageHandle;
        list(options?: ImageListOptions): Promise<ImageList>;
        upload(
            image: ArrayBuffer | ReadableStream<Uint8Array<ArrayBufferLike>>,
            options?: ImageUploadOptions,
        ): Promise<ImageMetadata>;
    }
    Index

    Methods

    Methods

    • Get a handle for a hosted image

      Parameters

      • imageId: string

        The ID of the image (UUID or custom ID)

      Returns ImageHandle

      A handle for per-image operations

    • Upload a new hosted image

      Parameters

      • image: ArrayBuffer | ReadableStream<Uint8Array<ArrayBufferLike>>

        The image file to upload

      • Optionaloptions: ImageUploadOptions

        Upload configuration

      Returns Promise<ImageMetadata>

      Metadata for the uploaded image

      ImagesError if upload fails