How to write bytearray to couchdb?

43 views
Skip to first unread message

Cihad Guzel

unread,
Jul 31, 2016, 2:55:29 PM7/31/16
to ektorp-discuss
Hi 

I want to send my object to couchdb using the ektorp java client. But I couldn't write my byte array value to couchdb properly. The my value is saved on couchdb as "AgIGZm9vBmJhegA="(base64) instead my bytearrray value  .  This means that "foobaz". Why is my bytearray value changed? Why is my bytearray value changed? Some charecters are ignored. You can see my question on steakoverflow: http://stackoverflow.com/questions/38682574/how-to-write-bytearray-to-couchdb.

Cihad Guzel

unread,
Jul 31, 2016, 2:55:52 PM7/31/16
to ektorp-discuss
Hi

I want to send my object to couchdb using the ektorp java client. But I couldn't write my byte array value to couchdb properly. The my value is saved on couchdb as "AgIGZm9vBmJhegA=" (base64) instead my bytearrray value  . This means that "foobaz". But my value is different from it. Some characters are ignored. Why is my bytearray value changed? 
Reply all
Reply to author
Forward
0 new messages