Content-Type | multipart/related; boundary="18B75887-6450-4167-97C0-F2C47D37D700" |
Accept-Encoding | br, gzip, deflate |
Connection | keep-alive |
Accept | */* |
User-Agent | CouchbaseLite/1.3 (Mac OS X 1.4.1) |
Content-Length | 1585013 |
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/9d3dd347-3a57-4c6f-a0b5-722014374182%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscribe@googlegroups.com.
"I've searched for other CouchDB/Couchbase hosting providers, but nobody seems to be doing it outside of IBM. "
[self.formEntry setAttachmentNamed:filename
withContentType:mimeType
contentURL:url];
The request being sent to IBM Cloud looks like this:
--005D258A-9C60-4EFE-9E5B-41C6E2EEFC92
Content-Length: 8960
Content-Type: application/json
{"_attachments":{"A-Clean-IND-Long-Beach-Blue-Metallic-BMW-X5-M-Project-8.jpg":{"content_type":"image/jpeg","digest":"sha1-JZ1CrUxQlePeXnyIBs/RbAiHdjg=","follows":true,"length":1575753,"revpos":9}} .... the rest of the JSON document....
--005D258A-9C60-4EFE-9E5B-41C6E2EEFC92
Content-Length: 1575753
Content-Disposition: attachment; filename="A-Clean-IND-Long-Beach-Blue-Metallic-BMW-X5-M-Project-8.jpg"
Content-Type: image/jpeg
The request being sent to IBM Cloud looks like this:
--005D258A-9C60-4EFE-9E5B-41C6E2EEFC92
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/1fc6a203-edc3-47bb-a7ec-60cc3c1afa68%40googlegroups.com.
I will DM you regarding this. There are couple of other hosting partners like zData that our partner teams can make introductions to if you'd like. We recently went through this exercise with another company who was migrating away from Cloudant (not for the attachment reasons that you mention which seems quite weird).
On Dec 1, 2017, at 1:45 AM, Brendan Duddridge <bren...@gmail.com> wrote:The problem I'm facing now in relation to Couchbase Lite 1.4.x is that they have reduced the document request size from 64 MB down to only 1 MB.
If I attach a file that's more than 1 MB, I get a "request entity too large" error.I used Charles Proxy to look at the request and it seems that Couchbase Lite is sending both the attachment and request body in one request. The attachment in the request is bounded.
Is there a way to enable attachment uploads as separate requests in Couchbase Lite 1.4.1?
On Dec 1, 2017, at 12:32 PM, Traun Leyden <traun....@gmail.com> wrote:Couchbase Lite will automatically determine whether to use base64'd inline attachments vs standalone multipart/related attachments. I can't remember what the cutoff size is, but I think it's around 10K.
Are these guidelines public? I’d like to see more detail.
Note: If you are using a Cloudant NoSQL DB service on IBM Bluemix, documents are limited to a maximum size of 1 MB. Exceeding this limit causes a 413
error.
The push replicator has to send the body and (changed) attachments in a single HTTP request, because they have to be added to the server’s database atomically. There is no way in the replication protocol to push a document revision without the attachments that go along with it.
Looking at the code, I think the only case where the push replicator sends attachments as inline base64 is if the server doesn’t support multipart … I believe this was for compatibility with old versions of PouchDB. Otherwise it’s always multipart.—JensPS: If you’re following along in the code, the relevant variable is _dontSendMultipart in CBLRestPusher.m.
On Dec 1, 2017, at 12:45 PM, Jens Alfke <je...@couchbase.com> wrote:Looking at the code, I think the only case where the push replicator sends attachments as inline base64 is if the server doesn’t support multipart
On Dec 1, 2017, at 12:51 PM, Brendan Duddridge <bren...@gmail.com> wrote:
Note: If you are using a Cloudant NoSQL DB service on IBM Bluemix, documents are limited to a maximum size of 1 MB. Exceeding this limit causes a413
error.
On Dec 8, 2017, at 5:17 PM, Brendan Duddridge <bren...@gmail.com> wrote:So here's something interesting. IBM has their own Cloudant CDTDatastore framework for iOS that syncs with their Cloudant system.Most of the code was written by you Jens :)