- (void) setAttachmentNamed: (NSString*)name
withContentType: (NSString*)mimeType
contentURL: (NSURL*)fileURL;
- (nullable CBLAttachment*) attachmentNamed: (NSString*)name;
To unzip you'll need a zip library. UnzipKit is a good one which I use:
https://github.com/abbeycode/UnzipKit
The nice thing about Couchbase Lite is when you encrypt your database, it also encrypts all the attachments.
Thanks,
Brendan
On Apr 7, 2017, at 10:30 AM, Todd Freese <to...@filmworkers.com> wrote:Is there still a 20meg max limit on file attachments?
On Apr 13, 2017, at 12:51 AM, parvez....@decurtis.com wrote:Since the attachments are stored as blobs in attachments folder where the local sqlite database for couchbase is stored. The blob file has extension .blob so how any unzipping library for example unzipkit is going to unzip it?
We also need to keep in mind that attachments are also encrypted like the database.
On Apr 14, 2017, at 12:59 AM, parvez....@decurtis.com wrote:Able to add attachments of sizes 11 MB, 19 MB but not of size 27 MB through the couchbase lite ios application. This means that the limit of 20MB applies to couchbase lite side also.
Is it a good practice to start all downloads in a for / while loop (Initially the pull replication's downloadsAttachments property is set to false so that initial sync can happen smoothly)? Will the couchbase lite sdk be able to handle multiple downloads simultaneously at its end ?
On Apr 15, 2017, at 11:54 PM, parvez....@decurtis.com wrote:Any idea on why I am getting compilation errors for adding observer on Progress's userInfo property?
On Apr 18, 2017, at 5:35 AM, parvez....@decurtis.com wrote:
Can you please clarify over this as there is a big confusion in it.