MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

hex invece di base64 in BinData() - MongoDB

HexData(3,"00112233445566778899aabbccddeeff")

o

UUID("00112233445566778899aabbccddeeff")

entrambi risulteranno in:

BinData(3,"ABEiM0RVZneImaq7zN3u/w==")

E viceversa:

BinData(3,"ABEiM0RVZneImaq7zN3u/w==").hex()

risulterà:

00112233445566778899aabbccddeeff