object BSONBinary
BSONBinary utilities
import reactivemongo.api.bson.{ BSONBinary, Subtype }
val bin1 = BSONBinary(
"foo".getBytes("UTF-8"), Subtype.GenericBinarySubtype)
// See Subtype.UuidSubtype
val uuid = BSONBinary(java.util.UUID.randomUUID())
- Companion:
- class
Value members
Concrete methods
Creates a BSONBinary with given value
and Subtype.
Creates a BSONBinary with given value
and Subtype.
import reactivemongo.api.bson.Subtype
reactivemongo.api.bson.BSONBinary(
"foo".getBytes("UTF-8"), Subtype.GenericBinarySubtype)
Creates a BSONBinary from the given UUID (with Subtype.UuidSubtype).
Creates a BSONBinary from the given UUID (with Subtype.UuidSubtype).
reactivemongo.api.bson.BSONBinary(java.util.UUID.randomUUID())
Returns a string representation of the given BSONBinary.
Returns a string representation of the given BSONBinary.