Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
If you want the raw bytes, you can do it today but you need to specify a transcoder that permits getting the content as a byte array, which is verbose. It would be nice if you could just say `contentAsBytes()` like you can with LookupInResult.
Before:
GetResult result = collection.get("foo", GetOptions.getOptions()
|
.transcoder(RawJsonTranscoder.INSTANCE));
|
byte[] contentBytes = result.contentAs(byte[].class);
|
After:
byte[] contentBytes = collection.get("foo").contentAsBytes();
|
Attachments
Issue Links
- relates to
-
JCBC-1858 Add convenience method for getting raw JSON bytes from LookupInResult
- Resolved
For Gerrit Dashboard: JCBC-1898 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
167524,3 | JCBC-1898 Add convenience method for getting raw bytes from GetResult | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |