[JAVA-564] Binary values serialize as <BinaryData> rather than extended JSON Created: 05/May/12  Updated: 18/Jun/12  Resolved: 07/May/12

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 2.7.3
Fix Version/s: 2.8.0

Type: Bug Priority: Major - P3
Reporter: Jared D. Cottrell Assignee: Bryan Reinero
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We have a binary value in a document that serializes to the screen in the mongo shell as:

{ "myField": BinData(2,"BINDATAHERE") }

but in the Java driver it's serializing as

{ "myField": <Binary Data> }

According to the Mongo extended JSON doc it should be serializing as:

{ "myField": { "$binary": "BINDATAHERE", "$type": "2" } }



 Comments   
Comment by Jeffrey Yemin [ 18/Jun/12 ]

Closing for 2.8.0 release.

Comment by Bryan Reinero [ 08/May/12 ]

This issue duplicates: https://jira.mongodb.org/browse/JAVA-488

Generated at Thu Feb 08 08:52:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.