Why isn't it working using the Couchbase Lite SDKs? On iOS, you can just call setImage:contentType: on your CBLModel subclasses https://github.com/couchbaselabs/ToDoLite-iOS/blob/master/ToDoLite/Task.m#L39
Can you explain more about the errors/issues you are getting when saving the attachment via the REST API? See the docs http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/document/put---db---doc---attachment-/index.html On Tuesday, 17 February 2015 09:54:14 UTC, [email protected] wrote: > > Hello all, > > We use couchbase (AND sync gateway AND cbmobile) and we need to upload > attachments in some docs. And we are having issues uploading attachments. > > We use Couchbase server 2.5.1 and so far we have been using sync_gateway > to upload. This workaround works fine (even though we would much better > prefer doing it directly but never succeeded) but we are struggling now > uploading (not so) big images, like 2 ou 3MBytes. > > Has anyone experienced these kind of issues ? > > Has anyone being successfull uploading 2, 3MBytes or more images in > Couchbase ? Have you used sync gateway or did you do it directly ? If so, > how ? > > Thanks in advance for your answers. > > Thomas > -- You received this message because you are subscribed to the Google Groups "Couchbase" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
