Constructs a NewBlob.
The raw data. Will be moved into the database when the document is saved. The constructor makes a copy of this, so any modifications afterwards will be ignored.
Optionalcontent_type: stringMIME type of the contents; this is optional.
Optional Readonlycontent_Optional MIME type of the contents. (Couchbase Lite doesn't use this, except as a hint for whether to compress the contents during sync.)
ReadonlydigestThe unique digest, usually SHA-1, of the blob's contents.
Optional ReadonlylengthLength in bytes of the contents.
Optional ReadonlyrevposUsed internally by Sync Gateway; you can ignore it.
A newly-created Blob that hasn't been saved yet. You can create instances and add them to a CBLDocument's body, at top-level or nested. When the document is saved, the data (contents) will be saved in the database separately from the document, loadable on demand via the getContents method; and this object will be replaced with an equivalent ExistingBlob object.