CBLBlob
@interface CBLBlob : NSObjectA CBLBlob appears as a property of a CBLMutableDocument; it contains arbitrary binary data,
tagged with a MIME type.
Blobs can be arbitrarily large, and their data is loaded only on demand (when the content
or contentStream properties are accessed), not when the document is loaded.
The document’s raw JSON form only contains the CBLBlob’s metadata (type, length and a digest of
the data) in a small object. The data itself is stored externally to the document, keyed by
the digest.
- 
                  
                  Initializes a CBLBlob with the given in-memory data. The blob can then be added as a property of a CBLMutableDocument. DeclarationObjective-C - (nonnull instancetype)initWithContentType:(nonnull NSString *)contentType data:(nonnull NSData *)data;ParameterscontentTypeThe type of content this CBLBlob will represent. dataThe data that this CBLBlob will contain. Return ValueThe CBLBlob object. 
- 
                  
                  Initializes a CBLBlob with the given stream of data. The blob can then be added as a property of a CBLMutableDocument. DeclarationObjective-C - (nonnull instancetype)initWithContentType:(nonnull NSString *)contentType contentStream:(nonnull NSInputStream *)stream;ParameterscontentTypeThe type of content this CBLBlob will represent. streamThe stream of data that this CBLBlob will consume. Return ValueThe CBLBlob object. 
- 
                  
                  Initializes a CBLBlob with the contents of a file. The blob can then be added as a property of a CBLMutableDocument. DeclarationObjective-C - (nullable instancetype)initWithContentType:(nonnull NSString *)contentType fileURL:(nonnull NSURL *)fileURL error: (NSError *_Nullable *_Nullable)error;ParameterscontentTypeThe type of content this CBLBlob will represent. fileURLA URL to a file containing the data that this CBLBlob will represent. errorOn return, the error if any. Return ValueThe CBLBlob object. 
- 
                  
                  The -init method is not available. DeclarationObjective-C - (nonnull instancetype)init;
- 
                  
                  Gets the contents of a CBLBlob as a block of memory. Not recommended for very large blobs, as it may be slow and use up lots of RAM. DeclarationObjective-C @property (readonly, nonatomic, nullable) NSData *content;
- 
                  
                  A stream of the content of a CBLBlob. The caller is responsible for opening the stream, and closing it when finished. DeclarationObjective-C @property (readonly, nonatomic, nullable) NSInputStream *contentStream;
- 
                  
                  The type of content this CBLBlob represents; by convention this is a MIME type. DeclarationObjective-C @property (readonly, nonatomic, nullable) NSString *contentType;
- 
                  
                  The binary length of this CBLBlob. DeclarationObjective-C @property (readonly, nonatomic) uint64_t length;
- 
                  
                  The cryptographic digest of this CBLBlob’s contents, which uniquely identifies it. DeclarationObjective-C @property (readonly, nonatomic, nullable) NSString *digest;
- 
                  
                  The metadata associated with this CBLBlob DeclarationObjective-C @property (readonly, nonatomic) NSDictionary<NSString *, id> *_Nonnull properties;
 CBLBlob Class Reference
        CBLBlob Class Reference