Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this load a databases with attachments? #62

Open
rjcorwin opened this issue Nov 20, 2017 · 1 comment
Open

Can this load a databases with attachments? #62

rjcorwin opened this issue Nov 20, 2017 · 1 comment

Comments

@rjcorwin
Copy link

Has anyone played around with loading databases with large media assets? Perhaps from a single zip file?

@8clever
Copy link

8clever commented Aug 18, 2018

I tried to load collection with attachments as images. I'm receive error
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be one of type string, TypedArray, or DataView. Received type object
at Hash.update (internal/crypto/hash.js:58:11)
at binaryMd5 (/home/ivan/Desktop/work/cloud-pouchdb/node_modules/pouchdb/lib/index.js:4467:41)

It is because we try to generate hash from attachment which is Buffer
{"data":{"type":"Buffer","data": ARRAY }}

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

No branches or pull requests

2 participants