pouchdb mangles base64 on `db.get(id, {attacments: true})`
Opened this issue · 0 comments
Jan-Jan commented
Thank you for react-native-pouchdb!
I'm having problems with base64 encoded attachments. These are my steps:
- I upload a jpg in base64 to CouchDB (with
content_type
eithertext/plain
orimage/jpeg
). - I look inside CouchDB (using _utils), the attachment is the correct base64 encoding.
- CouchDB syncs with PouchDB
- However, on the react-native side, when I do
db.get(id, {attachments: true})
Then the resulting doc
's _attachments
's data
contains a different string (ie, it appears to have been mangled).