Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

How to save binary documents? #2

Open
rpieciorak opened this issue Jan 8, 2018 · 3 comments
Open

How to save binary documents? #2

rpieciorak opened this issue Jan 8, 2018 · 3 comments
Labels

Comments

@rpieciorak
Copy link

Could someone give me an example how to save/get binary documents?

I need to store some images in the database.

@jakubhomoly
Copy link
Contributor

jakubhomoly commented Jan 8, 2018

Any particular reason why not just store them as Base64?

... or for that matter just upload them somewhere?

@rpieciorak
Copy link
Author

Some images means about 200 millions files.

Storing all of them in the filesystem failed (lack of free inodes).

Backup and restore would also takes ages to complete.

Filesystem is also tightly coupled with one host only, of course there is NFS or Ceph or some other magic beast, but there are not easy to setup and maintain.

Couchbase architecture and easy replication may allow solve my problems.

Any particular reason why not just store them as Base64?

I'm guessing it's the only way without major changes in the library.

@jakubhomoly
Copy link
Contributor

jakubhomoly commented Jan 8, 2018

Well, we haven't tried storing any binary data so far. Binary should be supported out of the box from Couchbase.

As you can see for yourself, there are no tests for binary, so if you manage to solve it, create a PR and I'll update the docs.

Unfortunately we haven't had much time to maintain this repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants