I have a series of documents in an existing mongo database. They have UUIDS encoded and written by a c# driver. I don't control the writing of the database. The field is:
(id,BSONBinary(reactivemongo.core.netty.ChannelBufferReadableBuffer@73e5d86f,OldUuidSubtype))
How can I convert this properly into a java UUID?
I have tried wrapping the binary byte array in a buffer, changing the endian-ness, and reading two longs. I have tried
In the db, the value prints as LUUID("b4756f84-b332-794d-836d-35f97aed7336"). However, once I create a UUID from the two longs or the nameUUIDFromBytes I don't get this value inside of the java UUID.