@couchbase/lite-js
    Preparing search index...

    Class ExistingBlob

    A Blob found in an existing document, whose contents have been saved in the database.

    Hierarchy (View Summary)

    Index

    Properties

    content_type?: string

    Optional MIME type of the contents. (Couchbase Lite doesn't use this, except as a hint for whether to compress the contents during sync.)

    digest: string

    The unique digest, usually SHA-1, of the blob's contents.

    length?: number

    Length in bytes of the contents.

    revpos?: number

    Used internally by Sync Gateway; you can ignore it.

    Methods

    • Asynchronously returns the blob's data as a UInt8Array.

      Returns Promise<Uint8Array<ArrayBufferLike>>